liusuyi
2025-12-08 ab8da122937f548f56b4b6efafc1fc4ca58bca90
ard-work/src/main/java/com/ard/work/service/impl/TyServiceImpl.java
@@ -176,7 +176,7 @@
            throw new ControlException("未找到对应的飞行器信息,boxSn:{}" + boxSn);
        }
        TyHttpCommonReceiver<?> result = tyClient.updateBoxSettings(ardDroneInfo.getServerId(), boxSettingsDTO);
        return result.getState() == 1;
        return result.getState() == 0;
    }
    /**
@@ -942,11 +942,6 @@
                // 处理无人机状态消息
                UavStateCmd uavStateCmd = (UavStateCmd) tyCommand;
                UavStateCache.put(uavStateCmd.getUavState());
                int flightMode = uavStateCmd.getUavState().getFlightControllerState().getFlightMode();
                if (flightMode != 14) {
                    //不在航线中 移除航线信息
                    UavWaylineCache.remove(uavStateCmd.getUavState().getBoxSn());
                }
                //logPrint("无人机状态", uavStateCmd.getUavState().getBoxSn());
                // WebSocketUtil.sendMessageAll(uavStateCmd.getUavState());
                break;