| | |
| | | break; |
| | | case 0x03: |
| | | case 0x04: |
| | | byte[] boxSn = new byte[dataLength - 1]; |
| | | in.readBytes(boxSn); |
| | | SubscribeReplyCommand subscribeReply = new SubscribeReplyCommand(new String(boxSn)); |
| | | log.debug("订阅回复: {}", subscribeReply.getBoxSn()); |
| | | break; |
| | | case (byte) 0xA8: |
| | | byte[] uavStatus = new byte[dataLength - 1]; |
| | |
| | | in.readBytes(uavData1); |
| | | byte[] uavData2 = new byte[15]; |
| | | in.readBytes(uavData2); |
| | | String boxSn = new String(uavData2); |
| | | TelemetryDataPB.UavInitInfo uavInitInfo = TelemetryDataPB.UavInitInfo.parseFrom(uavData1); |
| | | baseCommand = new DroneReadyNotificationCommand(uavInitInfo, actionCode); |
| | | baseCommand = new DroneReadyNotificationCommand(boxSn, uavInitInfo, actionCode); |
| | | log.info("无人机初始化数据: {}", uavInitInfo.getUavModel()); |
| | | break; |
| | | default: |