Auto-centering Modules
Auto-centering modules could cause some unwanted jitter which is why it is disabled by default!
What is auto-centering modules?
How do I enable auto-centering modules?
/**
* Initialize {@link SwerveDrive} with the directory provided.
*
* @param directory Directory of swerve drive config files.
*/
public SwerveSubsystem(File directory)
{
// Configure the Telemetry before creating the SwerveDrive to avoid unnecessary objects being created.
SwerveDriveTelemetry.verbosity = TelemetryVerbosity.HIGH;
swerveDrive = new SwerveParser(directory).createSwerveDrive(Constants.MAX_SPEED);
swerveDrive.setAutoCenteringModules(true);
}Last updated