For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Reference

YAGSL's own Java surface is intentionally small: swervelib.parser.SwerveParser reads your JSON config and hands you back a fully-built YAMS SwerveDrive. From that point on, you're driving and configuring a YAMS object, not a YAGSL-specific one — so the authoritative API reference lives in the YAMS docs, not here.

Class you get back from SwerveParser

YAMS API reference

yams.mechanisms.swerve.SwerveDrive

yams.mechanisms.config.SwerveDriveConfig

yams.mechanisms.swerve.SwerveModule (per-module)

Module config (built internally from your module JSON)

yams.mechanisms.swerve.utility.SwerveInputStream

The full YAMS API reference (all mechanisms, motor controllers, units, and math helpers — not just swerve) is at yagsl.gitbook.io/yams.

SwerveParser.createSwerveDriveDevices(config) is the one place YAGSL hands back something other than YAMS objects: alongside the SwerveDrive, it returns the raw vendor motor controller/encoder/ gyro objects it built, for the rare case where you need to call a vendor-specific method SmartMotorController doesn't expose. See How to access raw hardware devices.

Only SwerveParser and the JSON-file classes under swervelib.parser.json are YAGSL-specific. If you find yourself calling a method on SwerveDrive, SwerveModule, SwerveDriveConfig, SwerveModuleConfig, or SwerveInputStream, you're looking at YAMS API — go to the links above, not this repo's source, for the authoritative docs and Javadoc.

Where to look for what

Last updated

Was this helpful?