| File was renamed from ard-work/src/main/java/com/ard/tianyu/netty/command/control/SpeedControlCommand.java |
| | |
| | | package com.ard.tianyu.netty.command.control; |
| | | |
| | | import com.ard.tianyu.model.dto.control.SpeedControlDTO; |
| | | 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 SpeedControlCommand extends BaseCommand { |
| | | public class SpeedControlCmd extends BaseCmd { |
| | | private final byte encryptFlag = 0x00; // 加密标志 |
| | | private final byte actionCode = (byte) 0xF4; // 动作编号 |
| | | private final float pitchSpeed; // 俯仰转速 |
| | |
| | | private final short execTime = 200; // 执行时间 |
| | | |
| | | |
| | | public SpeedControlCommand(SpeedControlDTO speedControlDto) { |
| | | public SpeedControlCmd(SpeedControlDTO speedControlDto) { |
| | | setDataHeader((short) 0x7479); |
| | | setDataLength((short) 32); |
| | | setBoxSn(speedControlDto.getBoxSn().getBytes()); |