> For the complete documentation index, see [llms.txt](https://docs.raidrobotics.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.raidrobotics.org/commands-v3-state-machine/reference/file-map.md).

# File map

Every file in the robot code, what it is, and where it's documented. Paths are under `src/main/java/first/robot/`.

| File                                                                                                                                                                              | What it is                                                     | Docs                                                                                                                   |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| [`Robot.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/Robot.java)                                                           | Builds everything once; runs the scheduler every loop          | [Robot and Constants](https://docs.raidrobotics.org/commands-v3-state-machine/guide/robot-and-constants.md)            |
| [`Constants.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/Constants.java)                                                   | CAN IDs, ports, Limelight names: the wiring sheet              | [Robot and Constants](https://docs.raidrobotics.org/pages/8XDGB2erivXHiHcaccoV#constants.java)                         |
| [`RobotLog.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/RobotLog.java)                                                     | Starts the log files; robot-wide numbers; names RAIDLogs needs | [Logging](https://docs.raidrobotics.org/commands-v3-state-machine/guide/logging.md)                                    |
| [`SwerveTelemetry.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/SwerveTelemetry.java)                                       | Logging for the drivetrain                                     | [Logging](https://docs.raidrobotics.org/commands-v3-state-machine/guide/logging.md#drivetrain-logging)                 |
| [`generated/TunerConstants.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/generated/TunerConstants.java)                     | Written by Tuner X. Regenerate it; don't edit it.              | [Drivetrain](https://docs.raidrobotics.org/commands-v3-state-machine/guide/drivetrain.md#tunerconstants)               |
| [`subsystems/CommandSwerveDrivetrain.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/subsystems/CommandSwerveDrivetrain.java) | The swerve drive, as a Commands v3 mechanism                   | [Drivetrain](https://docs.raidrobotics.org/commands-v3-state-machine/guide/drivetrain.md)                              |
| [`subsystems/Mechanism1.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/subsystems/Mechanism1.java)                           | **Template:** a mechanism that goes to positions               | [Mechanisms](https://docs.raidrobotics.org/commands-v3-state-machine/guide/mechanisms.md#mechanism1-goes-to-positions) |
| [`subsystems/Mechanism2.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/subsystems/Mechanism2.java)                           | **Template:** a mechanism that spins, with a game piece sensor | [Mechanisms](https://docs.raidrobotics.org/commands-v3-state-machine/guide/mechanisms.md#mechanism2-spins)             |
| [`subsystems/Vision.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/subsystems/Vision.java)                                   | The Limelights: which estimates to believe                     | [Vision](https://docs.raidrobotics.org/commands-v3-state-machine/guide/vision.md)                                      |
| [`superstructure/Superstructure.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/superstructure/Superstructure.java)           | The state machine that runs the mechanisms together            | [The superstructure state machine](https://docs.raidrobotics.org/commands-v3-state-machine/guide/superstructure.md)    |
| [`auto/AutoDrive.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/auto/AutoDrive.java)                                         | "Drive to this pose", for autos                                | [Autonomous](https://docs.raidrobotics.org/commands-v3-state-machine/guide/autonomous.md#autodrive)                    |
| [`util/Requests.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/util/Requests.java)                                           | The request command pattern                                    | [Requests](https://docs.raidrobotics.org/commands-v3-state-machine/concepts/requests.md)                               |
| [`simulation/SuperstructureSim.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/simulation/SuperstructureSim.java)             | Pretend physics for the mechanisms, laptop only                | [Simulation](https://docs.raidrobotics.org/commands-v3-state-machine/guide/simulation.md)                              |
| [`opmodes/teleop/DriveTeleop.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/opmodes/teleop/DriveTeleop.java)                 | The driver's controls                                          | [Driver controls](https://docs.raidrobotics.org/commands-v3-state-machine/guide/teleop.md)                             |
| [`opmodes/auto/ExampleAuto.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/opmodes/auto/ExampleAuto.java)                     | **Template:** score, fetch a piece, score again                | [Autonomous](https://docs.raidrobotics.org/commands-v3-state-machine/guide/autonomous.md)                              |
| [`opmodes/auto/DoNothingAuto.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/opmodes/auto/DoNothingAuto.java)                 | The auto that does nothing                                     | [Opmodes](https://docs.raidrobotics.org/commands-v3-state-machine/concepts/opmodes.md#the-smallest-opmode)             |
| [`opmodes/utility/SysIdUtility.java`](https://github.com/Team4469/Robot_FSM_Template-Commandv3/blob/main/src/main/java/first/robot/opmodes/utility/SysIdUtility.java)             | Drivetrain characterization                                    | [Drivetrain](https://docs.raidrobotics.org/commands-v3-state-machine/guide/drivetrain.md#characterization-sysid)       |

`src/main/java/first/Main.java` starts the robot program. Don't change it.


---

# 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://docs.raidrobotics.org/commands-v3-state-machine/reference/file-map.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.
