Drive drifting to the left in simulator #180
-
We're using the latest version of YAGSL and it's looking great. We aren't using the controller/heading correction though, we're using our own. However, we noticed the drive drifting to the left a bit with our field-oriented drive control, so we started running some experiments. We checked our absolute encoders and made some minor adjustments, but we still saw some drifting. We ended up in the simulator. We saw the drifting to the left using field-oriented drive. We wanted to rule out our heading correction so we switched to robot-oriented drive. We literally are calling SwerveDrive.drive(new ChassisSpeeds(val, 0, 0)), and the unit still drifts to the left in the simulator. I tried tweaking absolute encoder offsets and it seems to change the drift characteristics a bit, but I feel like I'm guessing. It seems that one or two of the wheels aren't turning as fast as others... but they have the same configuration. I thought they could be rotated, but the sim shows them properly aligned. Here is a video. I have a button that resets our pose to the end of the field, so I ran the test twice - once showing our telemetry and once showing the swerve modules. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I updated it today which may address this. |
Beta Was this translation helpful? Give feedback.
I updated it today which may address this.