package com.ard.tianyu.netty.command;
|
|
import com.ard.tianyu.netty.protobuf.TelemetryDataPB;
|
import io.netty.buffer.ByteBuf;
|
import lombok.Data;
|
|
/**
|
* 无人机就绪通知命令
|
*
|
* @author 刘苏义
|
* @date 2024/10/24 17:18
|
*/
|
@Data
|
public class UavReadyNotificationCommand extends BaseCommand {
|
|
private byte actionCode;
|
private TelemetryDataPB.UavInitInfo uavInitInfo;
|
|
public UavReadyNotificationCommand(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;
|
}
|
|
@Override
|
public void encode(ByteBuf out) {
|
|
}
|
}
|