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

Welcome

Welcome to the Yet Another Mechanism System (YAMS) documentation.

The YAMS logo

YAMS fuses simulation and real control as closely as possible to real life. You can debug and program your robot without the actual robot. You can also program your robot before it is built.

YAMS targets WPILib 2027 (2027_alpha7) and the SystemCore. Upgrading a 2026 project? See Upgrading from 2026 to 2027.

Start here

These docs are written for FRC student programmers. You should know some Java (or C++) and have used a WPILib command-based project. You don't need to know PID or feedforward yet: the tutorials teach what you need as you go.

The arm tutorial takes you the whole way:

Stuck? See Troubleshooting.

Installation

YAMS ships as two vendordeps, one per WPILib command framework. Install only one of them; they conflict with each other.

Command framework
Vendordep
Online URL

Commands v2 (org.wpilib.command2, Java and C++)

Yet Another Mechanism System (Commands v2)

https://cdn.yassrobotics.com/yams_commands2.json

Commands v3 (org.wpilib.command3, Java only)

Yet Another Mechanism System (Commands v3)

https://cdn.yassrobotics.com/yams_commands3.json

If you are not sure which one you need, use Commands v2. The tutorials have a tab for Java with Commands v2, Java with Commands v3, and C++.

  1. In VS Code, open the command palette with Ctrl+Shift+P (Cmd+Shift+P on macOS).

  2. Run WPILib: Manage Vendor Libraries, then Install new libraries (online).

  3. Paste the vendordep URL for your command framework from the table above and press Enter.

  4. Install your motor controller's vendor library too, such as REVLib or Phoenix 6. YAMS drives the vendor's own motor controller objects, so it needs their library.

  1. Install WPILib 2027 (2027_alpha7) first, which creates the 2027_alpha7 WPILib home folder.

  2. Download <version>-YAMS-Offline.zip from the YAMS GitHub releases.

  3. Extract it into the WPILib home folder, so its maven and vendordeps folders merge with the existing ones:

    • Windows: C:\Users\Public\wpilib\2027_alpha7

    • macOS and Linux: ~/wpilib/2027_alpha7

  4. In VS Code, run WPILib: Manage Vendor Libraries, then Install new libraries (offline), and pick Yet Another Mechanism System (Commands v2) or Yet Another Mechanism System (Commands v3).

YAMS maven artifacts are served from https://cdn.yassrobotics.com/.

Get started with YAMG

The quickest way to get started is YAMG, the Yet Another Mechanisms Generator. Fill in a form about your mechanism and it writes the code for you, ready to copy into your project.

The YAMG website, in the YASS style, generating an arm. On the left, the form: subsystem name ArmSubsystem, mechanism type Arm, Use YAMS turned on, Commands v2, and the motor configuration with a SparkMAX and a NEO. On the right, the generated ArmSubsystem.java with its SparkMax and SmartMotorControllerConfig, in tabs next to Robot.java and RobotContainer.java, with Copy, Save File, Copy Link and Download All buttons. A WPILib 2026 and WPILib 2027 toggle is at the top right.
YAMG generating an arm with YAMS.
  1. Pick your WPILib version with the toggle at the top right: 2027, or 2026 for a 2026 project.

  2. Turn on Use YAMS. Without it, YAMG writes code that uses only WPILib and the motor controller's vendor library.

  3. Name your subsystem and pick the mechanism type: an elevator, an arm, a pivot or a flywheel.

  4. Pick the command framework that matches the vendordep you installed: Commands v2 or Commands v3.

  5. Fill in your motor controller, motor, gearing, limits and gains.

  6. Copy each generated file into your project, or press Download All. Along with the mechanism, YAMG writes Robot.java and, for Commands v2, RobotContainer.java with controller bindings, or, for Commands v3, a teleop op mode.

Copy Link puts the whole form into a link, so you can share the mechanism with your team or come back to it later.

The tutorials below build the same mechanisms step by step and explain each part.

Jump right in

Last updated

Was this helpful?