Explorar el Código

handle edge case

tuanchris hace 3 meses
padre
commit
ac8291db46
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      modules/connection/connection_manager.py

+ 2 - 0
modules/connection/connection_manager.py

@@ -451,6 +451,8 @@ def home(timeout=15):
 
             if idle_reached:
                 state.current_rho = 0
+                if not state.current_theta:
+                    state.current_theta = 0
                 homing_success = True
                 logger.info("Homing completed and device is idle")
             else: