Browse Source

fix:调整自检运动速度

master
白凤吉 3 weeks ago
parent
commit
f40f1d1e75
  1. 8
      src/main/java/com/qyft/ms/app/front/cmd/business/MoveTestCommand.java

8
src/main/java/com/qyft/ms/app/front/cmd/test/MoveTestCommand.java → src/main/java/com/qyft/ms/app/front/cmd/business/MoveTestCommand.java

@ -1,4 +1,4 @@
package com.qyft.ms.app.front.cmd.test;
package com.qyft.ms.app.front.cmd.business;
import com.qyft.ms.app.core.SelfMoveTestGenerator;
import com.qyft.ms.app.device.status.DeviceStatus;
@ -34,7 +34,7 @@ public class MoveTestCommand extends BaseCommandHandler {
try {
//deviceSensorService.collectSensorState();//收集传感器转态
webSocketService.pushSelfMoveTest(SelfMoveTestGenerator.generateJson(form.getCmdId(), form.getCmdCode(), "1、各项传感器正常", 25, "success"));
DeviceCommand motorXPositionSetCommand = DeviceCommandGenerator.motorXPositionSet(200.0); //移动到200mm处
DeviceCommand motorXPositionSetCommand = DeviceCommandGenerator.motorXPositionSet(200.0, 20.0); //移动到200mm处
CommandFuture motorXPositionSetCommandFuture = deviceCommandService.sendCommand(form.getCmdId(), form.getCmdCode(), motorXPositionSetCommand);
commandWait(motorXPositionSetCommandFuture);
@ -44,7 +44,7 @@ public class MoveTestCommand extends BaseCommandHandler {
webSocketService.pushSelfMoveTest(SelfMoveTestGenerator.generateJson(form.getCmdId(), form.getCmdCode(), "2、x轴电机检测完毕", 50, "success"));
DeviceCommand motorYPositionSetCommand = DeviceCommandGenerator.motorYPositionSet(100.0);//y轴移动100mm
DeviceCommand motorYPositionSetCommand = DeviceCommandGenerator.motorYPositionSet(100.0, 20.0);//y轴移动100mm
CommandFuture motorYPositionSetCommandFuture = deviceCommandService.sendCommand(form.getCmdId(), form.getCmdCode(), motorYPositionSetCommand);
commandWait(motorYPositionSetCommandFuture);
@ -53,7 +53,7 @@ public class MoveTestCommand extends BaseCommandHandler {
commandWait(motorYOriginCommandFuture);
webSocketService.pushSelfMoveTest(SelfMoveTestGenerator.generateJson(form.getCmdId(), form.getCmdCode(), "3、y轴电机检测完毕", 75, "success"));
DeviceCommand motorZPositionCommand = DeviceCommandGenerator.motorZPositionSet(50.0);//z轴50mm处
DeviceCommand motorZPositionCommand = DeviceCommandGenerator.motorZPositionSet(50.0, 20.0);//z轴50mm处
CommandFuture motorZPositionCommandFuture = deviceCommandService.sendCommand(form.getCmdId(), form.getCmdCode(), motorZPositionCommand);
commandWait(motorZPositionCommandFuture);
Loading…
Cancel
Save