Parcourir la source

Remove G92 Y0 fallback when Y homing fails

The G92 Y0 command was causing patterns to be offset by ~3cm when Y
homing didn't complete properly, as it would falsely set the current
position as zero regardless of actual ball position.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris il y a 4 semaines
Parent
commit
56602e7754
1 fichiers modifiés avec 0 ajouts et 5 suppressions
  1. 0 5
      modules/connection/connection_manager.py

+ 0 - 5
modules/connection/connection_manager.py

@@ -648,11 +648,6 @@ def home(timeout=90):
                     # Unlock machine to clear any alarm state
                     state.conn.send("$X\n")
                     time.sleep(0.5)
-                    # Set current Y position as zero if Y didn't home
-                    if not state.homed_y:
-                        state.conn.send("G92 Y0\n")
-                        logger.info("Set current Y position as zero (G92 Y0)")
-                        time.sleep(0.2)
 
                 # Wait for idle state after $H
                 logger.info("Waiting for device to reach idle state after $H...")