| File was renamed from ard-work/src/main/java/com/ard/tianyu/netty/command/real/UavTelemetryDataCommand.java |
| | |
| | | package com.ard.tianyu.netty.command.real; |
| | | |
| | | 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; |
| | | |
| | |
| | | * @author liusuyi |
| | | * @date 2024年10月23日9:33 |
| | | **/ |
| | | public class UavTelemetryDataCommand extends BaseCommand { |
| | | public class UavTelemetryDataCmd extends BaseCmd { |
| | | private TelemetryDataPB.TelemetryData telemetryData; |
| | | // 构造函数 |
| | | public UavTelemetryDataCommand(TelemetryDataPB.TelemetryData telemetryData) { |
| | | public UavTelemetryDataCmd(TelemetryDataPB.TelemetryData telemetryData) { |
| | | setDataHeader((short) 0x6A77); // 设置帧头 |
| | | // setDataLength((short) (1 + uavState.toByteArray().length)); // 数据长度 |
| | | setCmdCode((byte) 0xA9); // 设置命令编号 |