package com.ard.work.component.netty.command.manual; import com.ard.work.component.netty.command.BaseCmd; import io.netty.buffer.ByteBuf; import lombok.Data; /** * 到达指点飞行位置回复指令 * * @author liusuyi * @date 2024年10月26日15:43 **/ @Data public class PointControlReachedReplyCmd extends BaseCmd { private final byte encryptFlag = 0x00; // 加密标志 private final byte actionCode = 0x39; // 动作编号 private final byte result; // 执行结果 private final Integer errorCode; // 错误码 public PointControlReachedReplyCmd(String boxSn, Byte result, Integer errorCode) { setDataHeader((short) 0x6A77); setDataLength((short) 19); setBoxSn(boxSn.getBytes()); setCmdCode((byte) 0xD1); this.result = result; this.errorCode = errorCode; } public void encode(ByteBuf out) { } }