Procházet zdrojové kódy

Increase homing timeout from 90s to 120s

Provides buffer for controller to stabilize after soft reset
recovery before expecting reliable communication during homing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris před 1 týdnem
rodič
revize
097347f5a5
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      modules/connection/connection_manager.py

+ 3 - 2
modules/connection/connection_manager.py

@@ -943,7 +943,7 @@ def get_machine_steps(timeout=10):
         logger.error(f"Failed to get all machine parameters after {timeout}s. Missing: {', '.join(missing)}")
         return False
 
-def home(timeout=90):
+def home(timeout=120):
     """
     Perform homing sequence based on configured mode:
 
@@ -958,7 +958,8 @@ def home(timeout=90):
         - Set theta to compass offset, rho=0
 
     Args:
-        timeout: Maximum time in seconds to wait for homing to complete (default: 90)
+        timeout: Maximum time in seconds to wait for homing to complete (default: 120)
+                 Increased from 90s to allow buffer after soft reset recovery
     """
     import threading
     import math