Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuning drive train for path planner #21

Open
5 tasks
GabbyGenereux opened this issue Jan 20, 2024 · 1 comment
Open
5 tasks

Tuning drive train for path planner #21

GabbyGenereux opened this issue Jan 20, 2024 · 1 comment
Assignees

Comments

@GabbyGenereux
Copy link

GabbyGenereux commented Jan 20, 2024

Swerve needs to be tuned for pathplanner to follow paths accurately.

This is roughly how it has gone in the past:

  • Verify odometry is working reasonably correctly.
  • Tune odometry. Push robot, measure how far it travelled and compare to how far odometry thought it went. Can use SwerveSubsystem's setOdometryCommand and getDriveToPoseCommand to make the testing easier/more accurate.
  • Run a simple pathplanner path to drive in a straight line. Set drive P to 0, set pathplanners x/y and rot pid to 0, tune kS, kV based on graphs of module velocity when the path is running. (Note: kA doesn't have any effect so don't bother tuning it)
  • Set all pid values back to original values and ensure it still follows the path correctly.
  • Try sightly more complicated paths to verify.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants