Hello,
Our team went with swerve for the first time this year. While it has been fairly straight forward, there is an issue plaguing us.
The robot will drive correctly according to the input except when its rotated to either the left or right and then the controls become inverted. They go back to expected if you face the robot forward or back, and believe it’s something with the gyro. This is the code.
Thank you.
1 Like
You are correct in your belief! When you inputted your modules initially you may have accidentally got your front/back and left/right incorrect (these are based off of gyro 0). If you fix that it should work nicely after some debugging.
1 Like
Now that is the overly simple solution we couldn’t find!
Thank you, we will give that a try and update on how it goes tomorrow.
1 Like
My apologies for the delay.
After checking in on the robot, updated the libraries and it started working fine. Just an simple inversion of the controls and it was fine.
Thank you for the assistance!
1 Like