| File was renamed from ard-work/src/main/java/com/ard/tianyu/netty/command/register/UavReadyNotificationCommand.java |
| | |
| | | package com.ard.tianyu.netty.command.register; |
| | | |
| | | import com.ard.tianyu.netty.command.BaseCommand; |
| | | import com.ard.tianyu.netty.command.BaseCmd; |
| | | import com.ard.tianyu.netty.protobuf.TelemetryDataPB; |
| | | import io.netty.buffer.ByteBuf; |
| | | import lombok.Data; |
| | |
| | | * @date 2024/10/24 17:18 |
| | | */ |
| | | @Data |
| | | public class UavReadyNotificationCommand extends BaseCommand { |
| | | public class UavInitReplyCmd extends BaseCmd { |
| | | |
| | | private byte actionCode; |
| | | private byte actionCode = 0x42; |
| | | private TelemetryDataPB.UavInitInfo uavInitInfo; |
| | | |
| | | public UavReadyNotificationCommand(String boxSn, TelemetryDataPB.UavInitInfo uavInitInfo, byte actionCode) { |
| | | public UavInitReplyCmd(String boxSn, TelemetryDataPB.UavInitInfo uavInitInfo) { |
| | | setDataHeader((short) 0x6A77); // 设置帧头 |
| | | // setDataLength((short) (1 + uavState.toByteArray().length)); // 数据长度 |
| | | setBoxSn(boxSn.getBytes()); |
| | | setCmdCode((byte) 0xD1); // 设置命令编号 |
| | | |
| | | this.uavInitInfo = uavInitInfo; |
| | | this.actionCode = actionCode; |
| | | } |
| | | |
| | | @Override |