2024.4.8.1 update

This commit is contained in:
thenetworkgrinch
2024-02-06 16:03:08 -06:00
parent c478a800b2
commit 2a78abb56b
113 changed files with 316 additions and 277 deletions

View File

@@ -1141,4 +1141,19 @@ public class SwerveDrive
}
}
/**
* Enable or disable the {@link swervelib.parser.SwerveModuleConfiguration#useCosineCompensator} for all
* {@link SwerveModule}'s in the swerve drive. The cosine compensator will slow down or speed up modules that are
* close to their desired state in theory.
*
* @param enabled Usage of the cosine compensator.
*/
public void setCosineCompensator(boolean enabled)
{
for (SwerveModule module : swerveModules)
{
module.configuration.useCosineCompensator = enabled;
}
}
}