midtownrobotics / 2024-Offseason

Other
0 stars 0 forks source link

Auto PathPlanner Config should be changed to use tunable numbers #53

Closed Mysterium422 closed 1 week ago

Mysterium422 commented 2 weeks ago

0) Fix current tunable numbers! See other issue

1) Write a function called buildCurrentAutonCommand. Take a look at how buildAutonCommand is typically used, and basically make a new function to simply this.

2) Create 6 tunable numbers. PATHPLANNER_ROTATION_P, PATHPLANNER_TRANSLATION_D and more

3) Create a function called updateHolonomicConfig, which runs the AutoBuilder.configureHolonomic code. It should also run buildCurrentAutonCommand at the end.

4) Within periodic, use LoggedTunableNumber.ifChanged to run updateHolonomicConfig when any of the tunable numbers change