| File was renamed from ard-work/src/main/java/com/ard/tianyu/netty/command/control/AbsAngleControlCommand.java |
| | |
| | | package com.ard.tianyu.netty.command.control; |
| | | |
| | | import com.ard.tianyu.model.dto.control.AbsAngleControlDTO; |
| | | import com.ard.tianyu.netty.command.BaseCommand; |
| | | import com.ard.tianyu.netty.command.BaseCmd; |
| | | import io.netty.buffer.ByteBuf; |
| | | import lombok.Data; |
| | | |
| | |
| | | */ |
| | | |
| | | @Data |
| | | public class AbsAngleControlCommand extends BaseCommand { |
| | | public class AbsAngleControlCmd extends BaseCmd { |
| | | private final byte encryptFlag = 0x00; // 加密标志 |
| | | private final byte actionCode = 0x09; // 动作编号 |
| | | private final float pitch; // 俯仰 |
| | | private final float yaw; // 平移 |
| | | private final float roll; // 横滚 |
| | | |
| | | public AbsAngleControlCommand(AbsAngleControlDTO absAngleControlDto) { |
| | | public AbsAngleControlCmd(AbsAngleControlDTO absAngleControlDto) { |
| | | setDataHeader((short) 0x7479); |
| | | setDataLength((short) 30); |
| | | setBoxSn(absAngleControlDto.getBoxSn().getBytes()); |