Debugging with Telemetry
Use telemetry to find what the robot thinks is true.
Use telemetry to find what the robot thinks is true.
In this lesson, you will:
Good telemetry turns mystery behavior into visible data. Show joystick input, current state, motor power, and any sensor value that affects decisions.
Before rewriting logic, check whether the robot sees the same input you think it sees. Most fixes start with one boring value on screen.
If you change three things and the robot improves, you do not know which change worked — or which one will bite you later. Make one change, test it, write down what happened, then move on.
TelemetryDebug.javaJava
telemetry.addData("Drive", drive);
telemetry.addData("Strafe", strafe);
telemetry.addData("Turn", turn);
telemetry.addData("Lift target", liftTargetTicks);
telemetry.addData("Lift position", liftMotor.getCurrentPosition());
telemetry.update();Check your understanding before moving on.
The robot drifts left when the driver pushes straight forward. What do you check first?
What makes a telemetry label useful during a match?
0 of 2 answered
Mark this lesson complete — “Code Review for Robot Programmers” is up next.