Skip to content

Move the timing of the initial continuous rotation in wiregrid.py#247

Merged
BrianJKoopman merged 2 commits intomainfrom
sadachi5-mod-wiregrid-202603
Mar 18, 2026
Merged

Move the timing of the initial continuous rotation in wiregrid.py#247
BrianJKoopman merged 2 commits intomainfrom
sadachi5-mod-wiregrid-202603

Conversation

@sadachi5
Copy link
Contributor

(main change) Change the timing of the initial continuous rotation in wiregrid.py from before the insertion to after the insertion. That's because the encoder sometimes disconnects during the insertion and forgets the correct reference encoder position (0 deg). By changing the timing of the initial continuous rotation to check the reference encoder position, we can get the correct angle even if the disconnection occurs during the insertion.

(minor changes) Updated rotation duration for reference before calibration and insertion.

sadachi5 and others added 2 commits March 18, 2026 13:26
(main change) Change the timing of the initial continuous rotation in `wiregrid.py` from before the insertion to after the insertion. That's because the encoder sometimes disconnects during the insertion and forgets the correct reference encoder position (0 deg). By changing the timing of the initial continuous rotation to check the reference encoder position, we can get the correct angle even if the disconnection occurs during the insertion.

(minor changes) Updated rotation duration for reference before calibration and insertion.
@BrianJKoopman BrianJKoopman self-requested a review March 18, 2026 20:14
Copy link
Member

@BrianJKoopman BrianJKoopman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thanks for the PR!

Will this affect anyone's analysis downstream? We should probably warn people/track when this gets deployed if that's the case.

@BrianJKoopman BrianJKoopman merged commit 831234c into main Mar 18, 2026
6 checks passed
@BrianJKoopman BrianJKoopman deleted the sadachi5-mod-wiregrid-202603 branch March 18, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants