# Example Code

## 2024 REV ION FRC Starter Bot Code

Below is a link to download the code for a 2024 REV ION FRC Starter Bot on GitHub! This example uses a MAXSwerve Drivetrain and is programmed in Java.&#x20;

| [2024 REV ION Starter Bot Code - GitHub](https://github.com/REVrobotics/2024-REV-ION-FRC-Starter-Bot) |
| :---------------------------------------------------------------------------------------------------: |

### Using the Starter Bot code without a MAXSwerve Drivetrain

If you are only using part of our design on your robot, you can still use this code to help you program! To find the code for each individual mechanism, navigate to:&#x20;

```
2024-REV-ION-FRC-Starter-Bot/src/main/java/frc/robot/subsystems
```

Then, select one of the following subsystem programs to use

* `ArmSubsystem.java`- raising and lowering the intake and launcher, also controls the climb
* `IntakeSubsystem.java` - intaking notes and feeding them to the launcher
* `LauncherSubsystem.java` - stopping and starting the flywheels on the launcher

In addition to referencing the subsystem code, you will need to look at `RobotContainer.java` for information about button bindings, constant/variable names, and function names. To find `RobotContainer.java` navigate to:

```
2024-REV-ION-FRC-Starter-Bot/src/main/java/frc/robot
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.revrobotics.com/frc-kickoff-concepts/2024/code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
