YAGSL Swerve Issues

Hi everyone! We’ve been programming our sds mk3 swerve modules (using Neo motors) with YAGSL and have recently come into some issues. At first, we were able to tune our angle offsets and PID values so that we could use the left joystick of our Xbox controller to move the robot forwards, backwards, left, right, and for strafing/turning. However, when we started tuning our PID values for our anglejoystick headband and finally got the robot to be able to rotate using the right joystick, the robot does not stop rotating when we stop using the right joystick, and our robot rotates when we move our left joystick when we do not want it to, leading to very uncontrollable movements. Attached is a video to better see the movements of our swerve base. Here is a link to our main folder with our robot code, if anyone could help us out with these issues or could point us in the right direction we would greatly appreciate it, thanks:

Videos:

1 Like

Here’s another video (CD wouldn’t let me give more than two links): cm-chat-media-video-1:3b8c7479-8652-4a6b-9321-7c1559a183d2:2019:1:0.mov - Google Drive

This sounds like your robot doesn’t know what the right direction to turn is, so youll have to folllow the 8 steps.

Be sure to test in between each step!

https://yagsl.gitbook.io/yagsl/configuring-yagsl/the-eight-steps