|
|
@ -113,6 +113,9 @@ public class TaskStartReset extends TaskBase { |
|
|
|
this.analysisPushMotor.moveTo("analysisPushMotorStandby"); |
|
|
|
this.cleanIncubatorIfError(); |
|
|
|
|
|
|
|
// 12. 结束掉所有上次正在执行的任务 |
|
|
|
this.device.testService.cancelAllTasks(); |
|
|
|
|
|
|
|
this.device.setIsReady(true); |
|
|
|
LOG.info("[reset] task finished, cost {}s", (System.currentTimeMillis() - startTime)/1000.00); |
|
|
|
} |
|
|
@ -127,8 +130,6 @@ public class TaskStartReset extends TaskBase { |
|
|
|
} |
|
|
|
|
|
|
|
ActIncubator incubatorMotor = (ActIncubator)device.getActuator(ActuatorModule.INCUBATOR_MOTOR); |
|
|
|
this.analysisScanMotor.moveTo("analysisScanMotorDropCard"); |
|
|
|
|
|
|
|
List<Map<String,Object>> slots = this.device.runtimeVariableService.getJson("DeviceIncubatorSlots", List.class); |
|
|
|
for ( Map<String,Object> slotInfo : slots ) { |
|
|
|
Boolean isFree = (Boolean)slotInfo.get("isFree"); |
|
|
@ -142,9 +143,10 @@ public class TaskStartReset extends TaskBase { |
|
|
|
incubatorMotor.moveTo(slot.getExitLocation()); |
|
|
|
this.analysisPushMotor.moveTo("analysisPushMotorScanStart"); |
|
|
|
this.analysisPushMotor.moveTo("analysisPushMotorStandby"); |
|
|
|
this.analysisScanMotor.moveTo("analysisScanMotorDropCard"); |
|
|
|
this.analysisScanMotor.moveTo("analysisScanMotorStandBy"); |
|
|
|
} |
|
|
|
|
|
|
|
this.analysisScanMotor.moveTo("analysisScanMotorStandBy"); |
|
|
|
this.device.runtimeVariableService.setString("DeviceIncubatorSlots", "[]"); |
|
|
|
LOG.info("[reset] incubator clean finished"); |
|
|
|
} |
|
|
|