[x] Fixed an issue with the method isModuleSynced in SwerveModule
Explain what you did:
This method is supposed to check if 2 angles are within ~3 degrees of each other but it wasn't properly handling angles that wrap around 0 to 360 or angles that had different ranges. For example, the cancoder minus offset might be in the range of [40, 400) if the offset if -40 degrees.
Fix: After subtracting the angles to find the error, I forced the angleError to be in the range of -180 to 180.
Checklist before requesting a review
[x] I have performed a self-review of my code.
[ ] I have tested thoroughly.
[x] I have written documentation and explained about my changes to the best of my ability.
Describe your changes
Explain what you did:
Checklist before requesting a review