> For the complete documentation index, see [llms.txt](https://docs.revrobotics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.revrobotics.com/first-global/2026/sb-code/programming-intake-and-flywheel.md).

# Programming - Intake and Flywheel

## Intake&#x20;

<figure><img src="/files/zRlpPQEcMPDtUZxDhzA4" alt=""><figcaption><p>Bumper controls for the intake</p></figcaption></figure>

The intake is controlled using the bumpers on the gamepad. The **left bumper** intakes game pieces into the robot while **right bumper** reverses to output back onto the field.

## Flywheels and Feeder

The flywheel on the Starter Bot is controlled using two motors. These motors need to move at the same time when activated.&#x20;

<figure><img src="/files/VNSxU8sr0t9DfqiCSmiz" alt=""><figcaption><p>Flywheel and feeder code</p></figcaption></figure>

When **cross** is pressed, the flywheels will both spin up to the set target velocity. Then the Core Hex controlling the feeder will wait until both motors are within 100 ticks of the target velocity before activating and feeding game pieces into the flywheel to launch.

#### Manual Feeder Control

<figure><img src="/files/4aXhvcaGBFWD6E8GBMdk" alt=""><figcaption><p>Manual feeder controls</p></figcaption></figure>

The Core Hex motor controlling the feeder into the flywheel can be manually controlled using the Dpad on the gamepad to assist with agitating game pieces and clearing jams.&#x20;

#### Stopping the Motors

<figure><img src="/files/9LZTF1kkyVYAsWVp11mG" alt=""><figcaption><p>Resetting motors to 0 power</p></figcaption></figure>

If the robot is not receiving input from the Dpad or Cross button, then all three motors will return to 0 power.

### Flywheel Telemetry

To aid with fine tuning the flywheels, we can add telemetry to see the current velocity on the Driver Hub. The velocity can be changed by modifying the `targetVelocity` variable.&#x20;

<figure><img src="/files/a9lUMNETk0UXs78NAbwT" alt=""><figcaption><p>Flywheel Telemetry</p></figcaption></figure>
