Browse Source

速度赋值反了

master
HSZ_HeSongZhen 3 months ago
parent
commit
c7b006e4e7
  1. 12
      src/main/java/com/iflytop/gd/app/cmd/debug/PalletElevatorLiftDownCommandHandler.java

12
src/main/java/com/iflytop/gd/app/cmd/debug/PalletElevatorLiftDownCommandHandler.java

@ -35,12 +35,12 @@ public class PalletElevatorLiftDownCommandHandler extends BaseCommandHandler {
HeatModuleId heatModuleId = HeatModuleId.valueOf(index);
if (velocity != null) {
switch (heatModuleId) {
case heat_module_01 -> deviceCommand = DeviceCommandGenerator.heaterMotor1Set(distance);
case heat_module_02 -> deviceCommand = DeviceCommandGenerator.heaterMotor2Set(distance);
case heat_module_03 -> deviceCommand = DeviceCommandGenerator.heaterMotor3Set(distance);
case heat_module_04 -> deviceCommand = DeviceCommandGenerator.heaterMotor4Set(distance);
case heat_module_05 -> deviceCommand = DeviceCommandGenerator.heaterMotor5Set(distance);
case heat_module_06 -> deviceCommand = DeviceCommandGenerator.heaterMotor6Set(distance);
case heat_module_01 -> deviceCommand = DeviceCommandGenerator.heaterMotor1Set(velocity);
case heat_module_02 -> deviceCommand = DeviceCommandGenerator.heaterMotor2Set(velocity);
case heat_module_03 -> deviceCommand = DeviceCommandGenerator.heaterMotor3Set(velocity);
case heat_module_04 -> deviceCommand = DeviceCommandGenerator.heaterMotor4Set(velocity);
case heat_module_05 -> deviceCommand = DeviceCommandGenerator.heaterMotor5Set(velocity);
case heat_module_06 -> deviceCommand = DeviceCommandGenerator.heaterMotor6Set(velocity);
default -> throw new RuntimeException("index 未找到");
}
CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdDTO.getCommandId(), cmdDTO.getCommand(), deviceCommand);

Loading…
Cancel
Save