CTRE swerve consistently goes half the distance in auto

Our drive base will only ever go half the distance that we tell it to in path planner. The code for swerve was generated with Phoenix Tuner X.

Any suggestions or help is greatly appreciated.

frc2609/generated-swerve

1 Like

Likely some conversion factor issue.

Others will ask you to post a link to your code, so…

Your code has the wheel radius set as four inches:

This is unlikely for a swerve drive robot. You probably forgot to divide the wheel diameter by two when inputting the wheel radius into Phoenix Tuner X. Regenerate the TunerConstants.java file from Tuner (with corrected settings) and try again.

3 Likes

Makes sense, thanks a ton. We’ll try it in the next few days.