11 / Git, Debugging, and Competition Readiness
Telemetry-First Debugging
Debug the smallest claim before rewriting the robot.
11 / Git, Debugging, and Competition Readiness
Debug the smallest claim before rewriting the robot.
You will
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.
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.
At events, labels matter. Good telemetry uses clear names and avoids flooding the Driver Station with values nobody can interpret.
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();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.
Check your understanding
What should you debug first?
0 of 1 answered
References
Finished reading?
You'll move on to “Competition Readiness Checklist” next.