Overview
These guides are short API recipes: the classes and calls you need for one job, in Java and C++, with links to the full reference for each class.
The guides assume you have:
A WPILib 2027 project with the YAMS vendordep installed, as in Create a project and install YAMS.
Basic command-based programming: subsystems (Commands v2) or mechanisms (Commands v3), commands and triggers.
The guides
Configuring a motor controller: the
SmartMotorControllerConfigand the wrapper for your motor controller. Every mechanism starts here.Building an arm subsystem, an elevator and a flywheel, in Java.
Using YAMS sensors: sensors that work the same in simulation and on the robot.
Simulation: what each mechanism needs to simulate itself, and how to run it.
The gains in these guides
The PID and feedforward numbers in the code are placeholders that show where each value goes. They are not tuned for your mechanism. With them, expect the mechanism to move toward its setpoint slowly, overshoot, or sag under gravity. Tune them as in Tune it in the arm tutorial.
If something does not work
Troubleshooting covers the common failures: code that does not build, a mechanism that does not show up or does not move in simulation, and problems on the real robot.
Last updated
Was this helpful?
