Swerve rotting and strafing not work

Hello, we are currently having problems with Strafing and rotating for swerve. The gears and the modules seem to be fighting each other when we try to do it and after that, the wheels don’t seem to reset properly. Also some times when we try to strafe the the robot just goes backwords or forward. The turning motor seems like it is not working, we tripple checked our code to see what the problem was but we could figure out what it was.Any help would be nice.

Video: https://youtu.be/VtjMeLSddWk

Github: GitHub - thorkiller35/Swerve-2023

Are you using the calibration jigs?

If so, when you 0 the encoders, are they all facing the same direction? Because for us, when we thought they were supposed to be, but I actuality, they are not supposed to be. We have only used the back two modules, but one needed to be 45 degrees offset from the other (the way the jig turns the wheel naturally). I do not think they mention that in the calibration tutorial (or we missed it).

1 Like