Documentation
Features and Resources
How to create a swerve drive?
How to create a SwerveDrive using JSON.
import java.io.File;
import edu.wpi.first.wpilibj.Filesystem;
import swervelib.parser.SwerveParser;
import swervelib.SwerveDrive;
import edu.wpi.first.math.util.Units;
double maximumSpeed = Units.feetToMeters(4.5)
File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve");
SwerveDrive swerveDrive = new SwerveParser(directory).createSwerveDrive(maximumSpeed);
Creating a swerve drive.
Migrating Old Configuration Files
Contributions
Last updated