> For the complete documentation index, see [llms.txt](https://yams.yassrobotics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yams.yassrobotics.com/api-reference/guides/guides.md). Agents can also search and read this documentation through its [MCP server](https://yams.yassrobotics.com/~gitbook/mcp).

# 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.

{% hint style="info" %}
**New to YAMS?** Start with the [tutorials in the documentation](https://yams.yassrobotics.com/documentation/tutorials/project-setup). They build each mechanism one step at a time, explain the ideas (PID, feedforward, motion profiles, simulation), and show how to tune it and run it on the robot. Come back here once you know what you want to build and need the exact calls.
{% endhint %}

The guides assume you have:

* A WPILib 2027 project with the YAMS vendordep installed, as in [Create a project and install YAMS](https://yams.yassrobotics.com/documentation/tutorials/project-setup).
* Basic command-based programming: subsystems (Commands v2) or mechanisms (Commands v3), commands and triggers.

## The guides

* [Configuring a motor controller](https://yams.yassrobotics.com/api-reference/guides/configuring-a-motor.md): the `SmartMotorControllerConfig` and the wrapper for your motor controller. Every mechanism starts here.
* [Building an arm subsystem](https://yams.yassrobotics.com/api-reference/guides/building-an-arm.md), [an elevator](https://yams.yassrobotics.com/api-reference/guides/building-an-elevator.md) and [a flywheel](https://yams.yassrobotics.com/api-reference/guides/building-a-flywheel.md), in Java.
* [Building positional mechanisms (C++)](https://yams.yassrobotics.com/api-reference/guides/building-mechanisms-cpp.md) and [a flywheel (C++)](https://yams.yassrobotics.com/api-reference/guides/building-a-flywheel-cpp.md).
* [Setting up swerve drive](https://yams.yassrobotics.com/api-reference/guides/setting-up-swerve.md), and [in C++](https://yams.yassrobotics.com/api-reference/guides/setting-up-swerve-cpp.md).
* [Using YAMS sensors](https://yams.yassrobotics.com/api-reference/guides/using-yams-sensors.md): sensors that work the same in simulation and on the robot.
* [Simulation](https://yams.yassrobotics.com/api-reference/guides/simulation.md): 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](https://yams.yassrobotics.com/documentation/tutorials/arm/tune) in the arm tutorial.

## If something does not work

[Troubleshooting](https://yams.yassrobotics.com/documentation/tutorials/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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://yams.yassrobotics.com/api-reference/guides/guides.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
