mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Fixed issue with angle optimization
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user