Fixed issue with angle optimization

This commit is contained in:
thenetworkgrinch
2023-08-29 19:59:07 -05:00
parent 38c7bdba7d
commit 12f6e0ed38
138 changed files with 8913 additions and 1020 deletions

View File

@@ -601,7 +601,9 @@ public class SwerveDrive
public void setMaximumSpeed(double maximumSpeed, boolean updateModuleFeedforward)
{
swerveDriveConfiguration.maxSpeed = maximumSpeed;
// swerveDriveConfiguration.attainableMaxTranslationalSpeedMetersPerSecond = maximumSpeed;
swerveController.config.maxSpeed = maximumSpeed;
// swerveDriveConfiguration.attainableMaxRotationalVelocityRadiansPerSecond = swerveController.config.maxAngularVelocity;
for (SwerveModule module : swerveModules)
{
module.configuration.maxSpeed = maximumSpeed;