#
lty
2025-09-22 9784ec36b190d0f0103b42059585d04ea0b10745
src/main/java/com/zy/core/MainProcess.java
@@ -24,7 +24,7 @@
    private MainServiceImpl mainService;
    // 所属线程
    private Thread thread;
    private Thread thread2;
    private Thread armThread;
    // 频率
    private int i = 0;
    private int k = 0;
@@ -37,8 +37,8 @@
        thread = new Thread(this::crnAndDevRun);
        thread.start();
        thread2 = new Thread(this::roboticArmDispatch);
//        thread2.start();
        armThread = new Thread(this::roboticArmDispatch);
        armThread.start();
    }
    private void crnAndDevRun() {
        while (!Thread.currentThread().isInterrupted()) {
@@ -150,12 +150,19 @@
            try {
                // 间隔
                Thread.sleep(1000);
                Thread.sleep(500);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
                }
//                //arm任务完成
//                mainService.armMissionAccomplished();
//                mainService.armMissionAccomplishedScanToCheckIn();
//
//                //arm任务下发
//                mainService.armTaskAssignment();
            } catch (Exception e) {
                e.printStackTrace();
@@ -166,7 +173,7 @@
    @PreDestroy
    public void shutDown(){
        if (thread != null) thread.interrupt();
        if (thread2 != null) thread2.interrupt();
        if (armThread != null) armThread.interrupt();
    }
}