From 0c5ca5e6f03a03f1c56a6560fed08c782eeb5c51 Mon Sep 17 00:00:00 2001 From: linwl <304115325@qq.com> Date: Thu, 21 Jan 2021 21:30:33 +0800 Subject: [PATCH] =?UTF-8?q?ALL=E6=94=B9=E4=B8=BAall?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DipperAstPosAsyncTaskServiceImpl.java | 44 +++++++------------ .../DipperAstTimeAsyncTaskServiceImpl.java | 34 +++++++++----- 2 files changed, 38 insertions(+), 40 deletions(-) diff --git a/src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java b/src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java index f6b4d80..5417f94 100644 --- a/src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java +++ b/src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java @@ -209,38 +209,26 @@ public class DipperAstPosAsyncTaskServiceImpl implements IDipperAstPosAsyncTaskS // A0 86 01 00 表示注入的位置精度为 1000 米 0186a0 // 00 2F 为校验和 - // astTimeCmd 组装 - String astTimeCmd = "23 3E 04 01 "; - astTimeCmd += "10 00 "; - byte[] lanBytes = HexConvert.hexStringToBytes(HexConvert.encodeHEX(lanLongValue).toUpperCase()); - - byte[] altBytes = HexConvert.hexStringToBytes(HexConvert.encodeHEX(altLongValue).toUpperCase()); - - StringBuffer lanBuf = new StringBuffer(); - for(int i=0; i