WestlakeLEARN
FTC / Java

First Tech Challenge

FTC / Java

01 · Java for FTC
  • OpMode Anatomy and Hello Robot
  • Variables, Math, and Decisions
  • Methods, Classes, and Robot Helpers
02 · FTC Hardware Essentials
  • Hardware Map and RobotHardware
  • Motors, Servos, and Sensors
  • IMU, Encoders, and Bulk Caching
03 · TeleOp and Mecanum
  • Robot-Centric Mecanum Drive
  • Field-Centric Driving
  • Driver Ergonomics and Safe TeleOp
04 · Subsystems and Commands
  • Subsystem Lifecycle
  • Enums and Finite State Machines
  • Command-Based OpModes
05 · From Timed Steps to Actions
  • Timed and Encoder Autonomous
  • Autonomous State Machines
  • Actions and Sequencing
06 · PID and Feedforward
  • PID Basics
  • Feedforward and PIDF
  • Dashboard Tuning Workflow
07 · Motion Profiling
  • Motion Profile Concepts
  • Implementing a Profiled Mechanism
  • Testing Profiles and Failure Modes
08 · OpenCV and AprilTags
  • VisionPortal Camera Setup
  • OpenCV Color and Region Processors
  • AprilTags and Field Pose
09 · Setup and Tuning
  • Road Runner 1.0 Install and Drive Class
  • Feedforward Tuning
  • Localization and Validation
10 · Trajectories, Actions, and MeepMeep
  • Action Builder and Trajectories
  • MeepMeep Preview
  • Full Road Runner Autonomous
11 · Git, Debugging, and Competition Readiness2/3
  • Git Workflow for FTC Teams
  • Telemetry-First Debugging
  • Competition Readiness Checklist
12 · Driver Control
  • Driver Control
13 · Autonomous Build
  • Simple Autonomous
14 · Debugging
  • Debugging with Telemetry

11 / Git, Debugging, and Competition Readiness

Telemetry-First Debugging

Debug the smallest claim before rewriting the robot.

45 minTeamGit, Debugging, and Competition Readiness

You will

  1. 01Turn robot mysteries into observable claims.
  2. 02Print input, state, target, measured value, and output.
  3. 03Separate code bugs from configuration and wiring bugs.

Why Telemetry-First Debugging matters

This lesson is part of the team workflow layer, where code quality becomes a competition habit. The point is to make programming choices visible, reviewable, and recoverable when students are tired or under event pressure.

Starting point

Debugging starts with a claim

Before rewriting a subsystem, state what should be true: the button changed, the state changed, the target changed, the encoder moved, or the output was sent. Then print the value that proves it.

Telemetry should be readable in a hurry

At events, labels matter. Good telemetry uses clear names and avoids flooding the Driver Station with values nobody can interpret.

Build path

Practice the workflow in small loops: make a change, describe it, test it, record the result, and decide whether it is safe to keep. The lesson should produce a team artifact such as a checklist, branch, commit, tuning note, or debug log.

For this specific lesson, students should first restate the goal in robot terms, then identify the value or behavior they expect to observe, then run the smallest test that proves the idea. The lesson should feel like a guided lab: predict, run, observe, explain, and only then extend.

DebugTelemetry.java · Java

telemetry.addData("input/a", gamepad2.a);
telemetry.addData("arm/state", arm.getState());
telemetry.addData("arm/target", arm.getTargetTicks());
telemetry.addData("arm/position", lift.getCurrentPosition());
telemetry.addData("arm/output", arm.getLastOutput());
telemetry.update();

Debugging and failure modes

Workflow breaks when knowledge lives only in one student's head. If nobody knows what changed, what was tested, or what code is deployed, the robot becomes fragile. The lesson should make the next action obvious to another teammate.

Practice

Pick one bug and write the five telemetry values that would prove where the bug starts: input, state, target, measured value, output.

Checks

  • Every telemetry label is specific.
  • The values answer a concrete debugging question.
  • The team removes or hides noisy event-unfriendly telemetry later.

Check your understanding

Module check

What should you debug first?

0 of 1 answered

References

FIRST FTC DocsOfficial FTC SDK and robot programming documentation.Game Manual 0Community FTC programming, control, and robot design reference.

Finished reading?

Mark this lesson complete.

You'll move on to “Competition Readiness Checklist” next.

Git Workflow for FTC TeamsCompetition Readiness Checklist