Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[maxswerve/swerveutils] Fix sign bug #76

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

epanov1602
Copy link
Contributor

@epanov1602 epanov1602 commented Feb 22, 2025

Fix bug in how sign of (target - current) is calculated. Add test.
(likely this was an oversight when this code was converted from Java)

We noticed because encountered weird behavior with MaxSwerve Python example when joystick is suddenly released back to zero. Reproducing in simulation gave us this.

@epanov1602
Copy link
Contributor Author

@sciencewhiz : is this something you can look into?

@epanov1602 epanov1602 force-pushed the ep/swerveutils-bug-fix branch from 3d0314d to 970ef62 Compare February 23, 2025 16:54
@virtuald virtuald merged commit 250facc into robotpy:main Feb 24, 2025
28 checks passed
@virtuald
Copy link
Member

Thanks!

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.

3 participants