fix(turret): align homing params with known-good reference to stop timeout#572
Open
veerwang wants to merge 1 commit into
Open
fix(turret): align homing params with known-good reference to stop timeout#572veerwang wants to merge 1 commit into
veerwang wants to merge 1 commit into
Conversation
…meout Homing (method 17, neg-limit switch) never asserted motion-done: the turret spun continuously while the status word's RUNNING bit (0x001F bit 12) never cleared, so home() hit its 30s timeout at startup. The homing params diverged from the validated NiMotion reference (ServoMotors/SingleMotor HomingConfig defaults). The device EEPROM had been left at the reference values (search=50, zero=20, zero_return=0); this controller overwrote them with search=1000, zero=200, zero_return=1. Restore the reference values: HOMING_SEARCH_SPEED 1000 -> 50 HOMING_ZERO_SPEED 200 -> 20 HOMING_ZERO_RETURN 1 -> 0 Verified on hardware: the turret now homes against the neg-limit switch and completes without timing out. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Homing (method 17, neg-limit switch) never asserted motion-done: the turret spun continuously while the status word's RUNNING bit (0x001F bit 12) never cleared, so
home()hit its 30s timeout at startup.The homing params had diverged from the validated NiMotion reference (ServoMotors/SingleMotor
HomingConfigdefaults). The device EEPROM had been left at the reference values (search=50, zero=20, zero_return=0); this controller overwrote them with search=1000, zero=200, zero_return=1.Change
software/control/objective_turret_controller.py— restore the reference values:HOMING_SEARCH_SPEEDHOMING_ZERO_SPEEDHOMING_ZERO_RETURNVerification
Verified on hardware: the turret now homes against the neg-limit switch and completes without timing out.
🤖 Generated with Claude Code