|
@ -33,17 +33,17 @@ public class TransportationArmMoveCommandHandler extends BaseCommandHandler { |
|
|
Double z = cmdDTO.getDoubleParam("zDimDistance"); |
|
|
Double z = cmdDTO.getDoubleParam("zDimDistance"); |
|
|
List<CommandFuture> futuresList = new ArrayList<>(); |
|
|
List<CommandFuture> futuresList = new ArrayList<>(); |
|
|
if (x != null) { |
|
|
if (x != null) { |
|
|
DeviceCommandBundle deviceCommand = DeviceCommandGenerator.gantryXMove(x); |
|
|
|
|
|
|
|
|
DeviceCommandBundle deviceCommand = DeviceCommandGenerator.gantryXMoveBy(x); |
|
|
CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdDTO.getCommandId(), cmdDTO.getCommand(), deviceCommand); |
|
|
CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdDTO.getCommandId(), cmdDTO.getCommand(), deviceCommand); |
|
|
futuresList.add(deviceCommandFuture); |
|
|
futuresList.add(deviceCommandFuture); |
|
|
} |
|
|
} |
|
|
if (y != null) { |
|
|
if (y != null) { |
|
|
DeviceCommandBundle deviceCommand = DeviceCommandGenerator.gantryYMove(y); |
|
|
|
|
|
|
|
|
DeviceCommandBundle deviceCommand = DeviceCommandGenerator.gantryYMoveBy(y); |
|
|
CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdDTO.getCommandId(), cmdDTO.getCommand(), deviceCommand); |
|
|
CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdDTO.getCommandId(), cmdDTO.getCommand(), deviceCommand); |
|
|
futuresList.add(deviceCommandFuture); |
|
|
futuresList.add(deviceCommandFuture); |
|
|
} |
|
|
} |
|
|
if (z != null) { |
|
|
if (z != null) { |
|
|
DeviceCommandBundle deviceCommand = DeviceCommandGenerator.gantryZMove(z); |
|
|
|
|
|
|
|
|
DeviceCommandBundle deviceCommand = DeviceCommandGenerator.gantryZMoveBy(z); |
|
|
CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdDTO.getCommandId(), cmdDTO.getCommand(), deviceCommand); |
|
|
CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdDTO.getCommandId(), cmdDTO.getCommand(), deviceCommand); |
|
|
futuresList.add(deviceCommandFuture); |
|
|
futuresList.add(deviceCommandFuture); |
|
|
} |
|
|
} |
|
|