| | |
| | | package com.ard.tianyu.netty.command.control; |
| | | |
| | | import com.ard.tianyu.model.dto.control.AngleControlDto; |
| | | import com.ard.tianyu.model.dto.control.AngleControlDTO; |
| | | import com.ard.tianyu.netty.command.BaseCommand; |
| | | import io.netty.buffer.ByteBuf; |
| | | import lombok.Data; |
| | |
| | | private final byte actionCode; // 动作编号 |
| | | private final byte rotationAngle; // 转动角度 |
| | | |
| | | public AngleControlCommand(AngleControlDto angleControlDto) { |
| | | public AngleControlCommand(AngleControlDTO angleControlDto) { |
| | | setDataHeader((short) 0x7479); |
| | | setDataLength((short) 19); |
| | | setBoxSn(angleControlDto.getBoxSn().getBytes()); |