What to expect?
Goal-oriented recipes for a robot that's already running YAGSL. If you're setting up your first swerve robot, start with the Tutorial section instead. These guides assume a working config and address a specific task or problem.
Code samples default to WPILib Commands v2 (swervelib.commands2, yams.commands2), with a Commands v3 tab or note wherever the API differs.
How to tune PIDF gains, including live tuning from a dashboard
How to use a custom gyro: for a heading source YAGSL's parser doesn't build, supplied as a
Rotation3dHow to put devices on a different CAN bus: the
canbusvalues for the SystemCore and Motioncore buses, and what each vendor acceptsHow to drive to a pose: a single point-to-point PID move, no path planner needed
How to set up PathPlanner: register a YAGSL-built
SwerveDrivewith PathPlanner'sAutoBuilder(Commands v2)How to access raw hardware devices: get the actual vendor motor controller/encoder/gyro objects
SwerveParserbuiltThe 8 steps: the translational-axis/heading coupling debugging procedure
How to view your DataLog in AdvantageScope: opening a recorded
.wpilogafter the fact, not live telemetry
Last updated
Was this helpful?