mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Update to swervelib 2024.5.0.0
This commit is contained in:
@@ -1159,6 +1159,21 @@ public class SwerveDrive
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable auto-centering module wheels. This has a side effect of causing some jitter to the robot when a PID is not
|
||||
* tuned perfectly. This function is a wrapper for {@link SwerveModule#setAntiJitter(boolean)} to perform
|
||||
* auto-centering.
|
||||
*
|
||||
* @param enabled Enable auto-centering (disable antiJitter)
|
||||
*/
|
||||
public void setAutoCenteringModules(boolean enabled)
|
||||
{
|
||||
for (SwerveModule module : swerveModules)
|
||||
{
|
||||
module.setAntiJitter(!enabled);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user