| File was renamed from ard-work/src/main/java/com/ard/tianyu/netty/command/control/AngleControlCommand.java |
| | |
| | | package com.ard.tianyu.netty.command.control; |
| | | |
| | | import com.ard.tianyu.model.dto.control.AngleControlDTO; |
| | | 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 AngleControlCommand extends BaseCommand { |
| | | public class AngleControlCmd extends BaseCmd { |
| | | private final byte encryptFlag = 0x00; // 加密标志 |
| | | private final byte actionCode; // 动作编号 |
| | | private final byte rotationAngle; // 转动角度 |
| | | |
| | | public AngleControlCommand(AngleControlDTO angleControlDto) { |
| | | public AngleControlCmd(AngleControlDTO angleControlDto) { |
| | | setDataHeader((short) 0x7479); |
| | | setDataLength((short) 19); |
| | | setBoxSn(angleControlDto.getBoxSn().getBytes()); |