From fb74c147093fb5b13c719306237d0d5224d29112 Mon Sep 17 00:00:00 2001 From: willitcode <91231142+willitcode@users.noreply.github.com> Date: Tue, 26 Mar 2024 07:44:16 -0500 Subject: [PATCH] use correct method to get max speed for paths --- src/main/java/frc/robot/subsystems/Drive.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/subsystems/Drive.java b/src/main/java/frc/robot/subsystems/Drive.java index 0331be4..f581011 100644 --- a/src/main/java/frc/robot/subsystems/Drive.java +++ b/src/main/java/frc/robot/subsystems/Drive.java @@ -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 */),