Skip to content

Commit

Permalink
use correct method to get max speed for paths
Browse files Browse the repository at this point in the history
  • Loading branch information
willitcode committed Mar 26, 2024
1 parent dca0fd9 commit fb74c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Drive() {
/* HolonomicPathFollowerConfig, this should likely live in your Constants class */
Constants.Drive.TRANSLATION_DRIVE_PID, /* Translation PID constants */
Constants.Drive.ROTATION_DRIVE_PID, /* Rotation PID constants */
Constants.Drive.MAX_SPEED, /* Max module speed, in m/s */
getMaximumSpeed(), /* Max module speed, in m/s */
Constants.Drive
.DISTANCE_ROBOT_CENTER_TO_SWERVE_MODULE, /* Drive base radius in meters. Distance from robot center to furthest module. */
new ReplanningConfig() /* Default path replanning config. See the API for the options here */),
Expand Down

0 comments on commit fb74c14

Please sign in to comment.