5 changed files with 102 additions and 7 deletions
-
6src/main/java/com/qyft/gd/device/controller/TestController.java
-
11src/main/java/com/qyft/gd/device/model/bo/DeviceAlarm.java
-
82src/main/java/com/qyft/gd/device/model/bo/DeviceStatus.java
-
6src/main/java/com/qyft/gd/device/service/DeviceService.java
-
4src/main/java/com/qyft/gd/service/CMDService.java
@ -0,0 +1,11 @@ |
|||||
|
package com.qyft.gd.device.model.bo; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* 设备报警信息 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class DeviceAlarm { |
||||
|
private String msg; |
||||
|
} |
@ -1,11 +1,93 @@ |
|||||
package com.qyft.gd.device.model.bo; |
package com.qyft.gd.device.model.bo; |
||||
|
|
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
/** |
/** |
||||
* 设备当前状态 |
* 设备当前状态 |
||||
*/ |
*/ |
||||
|
@Schema(description = "设备当前状态") |
||||
@Data |
@Data |
||||
public class DeviceStatus { |
public class DeviceStatus { |
||||
|
|
||||
|
@Schema(description = "门状态,true为开启状态,false为关闭状态") |
||||
|
private Boolean doorStatus; |
||||
|
@Schema(description = "导轨机械臂状态") |
||||
|
private RailArm railArm; |
||||
|
@Schema(description = "加液机械臂状态") |
||||
|
private LiquidArm liquidArm; |
||||
|
@Schema(description = "加液泵状态") |
||||
|
private List<Pump> pump; |
||||
|
@Schema(description = "摇匀状态,true为正在摇匀,false为停止摇匀") |
||||
|
private Boolean shakingStatus; |
||||
|
@Schema(description = "摇匀速度") |
||||
|
private Integer shakingSpeed; |
||||
|
@Schema(description = "加热状态,true为正在摇匀,false为停止摇匀") |
||||
|
private Boolean heatingStatus; |
||||
|
@Schema(description = "加热器状态") |
||||
|
private List<Heater> heater; |
||||
|
|
||||
|
@Data |
||||
|
class RailArm{ |
||||
|
@Schema(description = "所在x坐标") |
||||
|
private Integer x; |
||||
|
@Schema(description = "所在y坐标") |
||||
|
private Integer y; |
||||
|
@Schema(description = "所在z坐标") |
||||
|
private Integer z; |
||||
|
@Schema(description = "轴1角度") |
||||
|
private Double joint1; |
||||
|
@Schema(description = "轴2角度") |
||||
|
private Double joint2; |
||||
|
@Schema(description = "导轨移动距离") |
||||
|
private Double railDistance; |
||||
|
@Schema(description = "夹爪移动距离") |
||||
|
private Double clawDistance; |
||||
|
@Schema(description = "机械臂速度") |
||||
|
private int speed; |
||||
|
@Schema(description = "夹爪状态,true为张开状态,false为闭合状态") |
||||
|
private Boolean clawStatus; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
class LiquidArm{ |
||||
|
@Schema(description = "所在x坐标") |
||||
|
private Integer x; |
||||
|
@Schema(description = "所在y坐标") |
||||
|
private Integer y; |
||||
|
@Schema(description = "所在z坐标") |
||||
|
private Integer z; |
||||
|
@Schema(description = "轴1角度") |
||||
|
private Double joint1; |
||||
|
@Schema(description = "轴2角度") |
||||
|
private Double joint2; |
||||
|
@Schema(description = "机械臂速度") |
||||
|
private int speed; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
class Pump{ |
||||
|
@Schema(description = "加液泵id") |
||||
|
private String pumpId; |
||||
|
@Schema(description = "加液泵流量") |
||||
|
private Integer flowRate; |
||||
|
} |
||||
|
|
||||
|
@Data |
||||
|
class Heater{ |
||||
|
@Schema(description = "加热器id") |
||||
|
private String heaterId; |
||||
|
@Schema(description = "托盘状态,true为存在托盘,false为无托盘") |
||||
|
private Boolean trayStatus; |
||||
|
@Schema(description = "托盘移动的距离") |
||||
|
private Double trayHeight; |
||||
|
@Schema(description = "托盘移动的速度") |
||||
|
private Double traySpeed; |
||||
|
@Schema(description = "加热状态,true为正在加热,false为未加热") |
||||
|
private Double heatingStatus; |
||||
|
@Schema(description = "加热目标温度") |
||||
|
private Double temperature; |
||||
|
} |
||||
} |
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue