徐孝锋 8 mesi fa
parent
commit
ceb541eef9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      TeamAAS-VM/Core/Robots/XYZU_Robot.cs

+ 1 - 1
TeamAAS-VM/Core/Robots/XYZU_Robot.cs

@@ -582,7 +582,7 @@ namespace TeamAAS_VP.Core.Robots
                     }
 
                     // 判断是否至少有一个轴在最近 Timeout 时间内发生过变化(即认为还在运动)
-                    bool anyAxisMovedRecently = actNodes.Any(node => (now - lastChange[node]).TotalMilliseconds <= 2000);
+                    bool anyAxisMovedRecently = actNodes.Any(node => (now - lastChange[node]).TotalMilliseconds <= 1000);
 
                     // 如果没有任何轴在最近 Timeout 时间内发生变化,则认为出现停滞异常
                     if (!anyAxisMovedRecently && actNodes.Length > 0)