|
|
@ -74,7 +74,7 @@ public class UfActuatorCmdExecutor { |
|
|
|
} |
|
|
|
|
|
|
|
// triggered |
|
|
|
LOG.warn("急停触发"); |
|
|
|
LOG.warn("[*急停*] 触发"); |
|
|
|
UfMdbNotification.action("EmergencyStop", new HashMap<>()); |
|
|
|
UfCmdSnippetExecutor.emergencyExecute("EmergencyStop"); |
|
|
|
var restoreCheckThread = new Thread(UfActuatorCmdExecutor::emergencyStopRestoreCheck); |
|
|
@ -86,6 +86,7 @@ public class UfActuatorCmdExecutor { |
|
|
|
throw new RuntimeException(e); |
|
|
|
} |
|
|
|
} |
|
|
|
LOG.warn("[*急停*] 恢复"); |
|
|
|
UfCmdSnippetExecutor.emergencyExecute("EmergencyStopRestore"); |
|
|
|
return true; |
|
|
|
} |
|
|
@ -107,7 +108,6 @@ public class UfActuatorCmdExecutor { |
|
|
|
throw new RuntimeException(e); |
|
|
|
} |
|
|
|
} while ( true ); |
|
|
|
LOG.warn("急停恢复"); |
|
|
|
synchronized ( UfActuatorCmdExecutor.emergencyStopRestoreLock ) { |
|
|
|
UfActuatorCmdExecutor.emergencyStopRestoreLock.notify(); |
|
|
|
} |
|
|
|