Package yams.core
package yams.core
Yet Another Mechanism System (YAMS) the root package of the YAMS WPILib 2026 Java library.
YAMS abstracts common FRC robot mechanisms (arms, elevators, flywheels, swerve drives, and more) behind a consistent configuration-driven API. Rather than hand-rolling PID loops, gear-ratio math, and telemetry for every mechanism on the robot, teams describe their hardware once in a config object and let YAMS handle the rest.
Entry Points
There is no single top-level convenience class. The recommended starting point is one of the
mechanism config classes found in the yams.core.mechanisms.config sub-package, such as
ArmConfig. Construct a config, supply the required hardware
parameters, then pass it to the corresponding mechanism class to obtain a fully configured,
telemetry-enabled mechanism instance.
Package Overview
yams.core.mechanismsconcrete mechanism implementations (arm, elevator, flywheel, pivot, swerve, differential drive, double-jointed arm) and their config classes.yams.core.motorcontrollersvendor-agnostic smart motor-controller wrappers that normalize REV, CTRE, and other controllers behind a common interface.yams.core.gearinggear-ratio helpers (GearBox,Sprocket,MechanismGearing) for expressing mechanism gearing without manual ratio arithmetic.yams.core.telemetryautomatic publishing of mechanism state to AdvantageKit, SmartDashboard, and other telemetry back-ends.yams.core.mathcontrol-theory utilities including LQR, profiled PID, and filtered derivative estimation.yams.core.exceptionschecked and unchecked exceptions thrown when mechanisms or motor controllers are misconfigured.
Typical Usage
// 1. Build a config describing the physical hardware.
ArmConfig config = new ArmConfig()
.withMotor(new TalonFXController(1))
.withGearing(new GearBox(12.0, 60.0))
.withSoftLimits(Rotation2d.fromDegrees(-90), Rotation2d.fromDegrees(90));
// 2. Construct the mechanism exceptions are thrown here if config is invalid.
SmartArm arm = new SmartArm(config);
// 3. Command the mechanism from periodic or command-based code.
arm.setGoal(Rotation2d.fromDegrees(45));
arm.periodic();
- See Also:
-
ClassesClassDescriptionRivet, the YASS mascot, says hi on the Driver Station display when YAMS starts up.