Skip to content

Trace Worksheet

📝 Trace Worksheet

A Trace Worksheet follows the execution path from a driver action (like pressing a button) all the way through the code to a motor output. This is the core skill of code reading — understanding what happens when something triggers.

Example: Intake Button Trace (Completed)

Here is a completed trace to use as a reference:

Intake Button Trace — Example
🟢 Driver presses X button on driver controller
RobotContainer.java controller.x().toggleOnTrue(...)
Button trigger fires, starting the SequentialCommandGroup
RobotContainer.java InstantCommand → intakeSubsystem.deployOut()
Deploy motors swing intake outward
IntakeSubsystem.java deployOut() method
Left and right deploy motors set to DEPLOY_SPEED
RobotContainer.java WaitCommand(0.3)
Wait 0.3 seconds for deploy to finish
RobotContainer.java RunCommand → intakeSubsystem.runIntake(0.5)
Roller motors start spinning at 50% to grab notes
IntakeSubsystem.java runIntake(speed) method
Left and right roller motors set to the given speed
🔵 Intake rollers spin at 50% power, pulling notes into the robot

Your Turn: Trace Exercise 1

Trace what happens when the driver presses the Y button. Fill in each step below.

Files to reference:

Shoot Button Trace — Fill In
🟢 Driver presses Y button on driver controller
RobotContainer.java ______________________
What binding triggers? What command starts?
______________________ ______________________
What does the command do first?
______________________ ______________________
What subsystem method is called?
______________________ ______________________
What motor output results?
🔵 Fill in: What is the final result?

Your Turn: Trace Exercise 2

Pick any other button binding from RobotContainer.java and trace it yourself.

Custom Trace — Your Choice
🟢 Driver presses ______ button on ______ controller
______________________ ______________________
______________________
______________________ ______________________
______________________
______________________ ______________________
______________________
______________________ ______________________
______________________
🔵 Fill in: What is the final result?

Tips for Tracing