| | |
| | | private byte actionCode; |
| | | private TelemetryDataPB.UavInitInfo uavInitInfo; |
| | | |
| | | public DroneReadyNotificationCommand(TelemetryDataPB.UavInitInfo uavInitInfo, byte actionCode) { |
| | | public DroneReadyNotificationCommand(String boxSn,TelemetryDataPB.UavInitInfo uavInitInfo, byte actionCode) { |
| | | setDataHeader((short) 0x6A77); // 设置帧头 |
| | | // setDataLength((short) (1 + uavState.toByteArray().length)); // 数据长度 |
| | | setBoxSn(boxSn.getBytes()); |
| | | setCmdCode((byte) 0xD1); // 设置命令编号 |
| | | |
| | | this.uavInitInfo = uavInitInfo; |
| | | this.actionCode = actionCode; |
| | | } |