Skip to content

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
3 participants