Don't Blink LogoFTC Stack

Introduction to Autonomous

Autonomous is the first portion of every FTC match. During this period, the robot must operate entirely on its own without any driver input.

Unlike TeleOp, where the robot continuously reacts to gamepad inputs, an autonomous program follows a predetermined sequence of actions based on sensor data, timers, and control algorithms.

A successful autonomous routine should be:

  • Consistent
  • Accurate
  • Repeatable
  • Easy to modify

How Autonomous Works

An autonomous OpMode generally follows the same structure as any other OpMode.

  1. Initialize hardware.
  2. Wait for the match to begin.
  3. Execute a sequence of actions.
  4. End the routine.

For example:

@Override
public void runOpMode() {

    // Initialize robot

    waitForStart();

    if (isStopRequested()) return;

    // Execute autonomous routine
}

Unlike TeleOp, there is no need to constantly read gamepad inputs. Instead, your code determines exactly what the robot should do and when it should do it.

Building Blocks of Autonomous

Modern FTC autonomous programs are built from several key components.

Motion Control

Mechanisms such as lifts and arms often use PID controllers to accurately reach target positions.

Localization

The robot must estimate where it is on the field using sensors such as encoders and IMUs.

Path Following

Instead of commanding individual motor powers, modern robots follow smooth trajectories generated by libraries like Road Runner or Pedro Pathing.

Build an autonomous routine

  1. Use Sequential Programming for a simple sequence or State Machines to manage more complex routines.
  2. Learn Localization and Odometry and compare Ways to Localize.
  3. Read Path Following for an overview of Road Runner and Pedro Pathing.
  4. Use Feedback and PID, PID Control, and PID Movement to understand how to correct movement error.

Was this resource helpful?

On this page

Was this resource helpful?