From 208731a6c41b644186bb68c93c19ef7026284e3b Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Thu, 12 Mar 2026 16:04:43 +0800
Subject: [PATCH] 2026-03-09 优化标注功能 增加GeoCalculator计算工具类,算出面、圆的水平面积和水平周长,线的水平距离和直线距离。在调取按标注id获取标注详细信息接口给出,不入库。

---
 ard-work/src/main/java/com/ard/work/component/netty/handler/MessageProtocolDecoder.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ard-work/src/main/java/com/ard/work/component/netty/handler/MessageProtocolDecoder.java b/ard-work/src/main/java/com/ard/work/component/netty/handler/MessageProtocolDecoder.java
index 10ea780..e60cf12 100644
--- a/ard-work/src/main/java/com/ard/work/component/netty/handler/MessageProtocolDecoder.java
+++ b/ard-work/src/main/java/com/ard/work/component/netty/handler/MessageProtocolDecoder.java
@@ -1,6 +1,7 @@
 package com.ard.work.component.netty.handler;// MessageProtocolDecoder.java
 
 import com.ard.common.utils.ByteUtils;
+import com.ard.work.component.netty.command.camera.*;
 import com.ard.work.component.netty.command.manual.*;
 import com.ard.work.component.netty.command.wayline.*;
 import com.ard.work.domain.dto.converter.realdata.UavSignalInfoConverter;
@@ -10,13 +11,8 @@
 import com.ard.work.domain.dto.state.UavState;
 import com.ard.work.domain.dto.telemetry.TelemetryData;
 import com.ard.work.component.netty.command.BaseCmd;
-import com.ard.work.component.netty.command.camera.CameraModeReplyCmd;
-import com.ard.work.component.netty.command.camera.CapturePicReplyCmd;
-import com.ard.work.component.netty.command.camera.RecordStartReplyCmd;
-import com.ard.work.component.netty.command.camera.RecordStopReplyCmd;
 import com.ard.work.component.netty.command.notice.BoxPowerStatusReplyCmd;
-import com.ard.work.component.netty.command.notice.FlyWayEndReplyCmd;
-import com.ard.work.component.netty.command.camera.PicUploadCompletedReplyCmd;
+import com.ard.work.component.netty.command.notice.WayLineFinishedReplyCmd;
 import com.ard.work.component.netty.command.notice.UavReadyReplyCmd;
 import com.ard.work.component.netty.command.real.SignalInfoCmd;
 import com.ard.work.component.netty.command.real.UavStateCmd;
@@ -178,6 +174,8 @@
                 return new EmergencyBrakeReplyCmd(boxSn, result, errorCode);
             case 0x39:
                 return new PointControlReachedReplyCmd(boxSn, result, errorCode);
+            case 0x3B:
+                return new FlyRoundReplyCmd(boxSn, result, errorCode);
             case 0x22:
                 return new CameraModeReplyCmd(boxSn, result, errorCode);
             case 0x23:
@@ -187,9 +185,11 @@
             case 0x25:
                 return new RecordStopReplyCmd(boxSn, result, errorCode);
             case 0x2E:
-                return new FlyWayEndReplyCmd(boxSn, result, errorCode);
+                return new WayLineFinishedReplyCmd(boxSn, result, errorCode);
             // Special cases
             case 0x3D:
+            case 0x40:
+                return new FormatSdCardReplyCmd(boxSn, result, errorCode);
             case 0x42:
                 return processSpecialD1ReplyCmd(in, actionCode, boxSn);
             // Add other cases...

--
Gitblit v1.9.3