Trace the 2026 robot: commands, mechanisms and simulation
This case follows Team 1257's 2026-Robot commit 0c9a024. Its build specifies Java 17 and GradleRIO 2026.2.1; vendor files specify AdvantageKit 26.0.0, REVLib 2026.0.0 and PhotonLib v2026.1.1-rc-2. Treat these as a historical snapshot; it does not establish what binary or configuration ran at an event.
The original illustration maps code relationships, not physical placement, and does not show a measured robot. Read RobotContainer's real and simulation branches and button bindings alongside it.
Start with a driver action
Holding the driver's right bumper runs flywheel and hood targeting alongside drive alignment. In parallel, the code waits for flywheel, hood and drive alignment readiness or a 0.5-second timeout, then runs kicker, active floor, pivot agitation and hopper intake together. The timeout matters: the code can advance without all readiness conditions becoming true. Releasing the button ends the held command; read the individual command end behavior before assuming what every output does after cancellation.
The left bumper uses hub velocity and angle with a similar 0.5-second readiness timeout, while the right trigger runs hopper intake. The pivot default is runIntakeAngle(); active floor and intake default to stop commands. These statements describe the code, not observed match behavior.
Follow three mechanisms to hardware
| Mechanism | Subsystem and command | Real IO and feedback |
|---|---|---|
| Active floor | ActiveFloor.runActiveFloor() supplies a constant voltage through a ±12 V clamp; periodic() logs inputs and a debounced disconnect alert. |
ActiveFloorIOSparkMax actually constructs a SparkFlex despite its class name. It reports applied voltage, encoder speed, current and temperature. Its encoder conversion has a NEEDS TO BE DETERMINED comment: don't assume the conversion describes the final mechanism. |
| Kicker | Kicker.runIntake() delegates to a velocity command, which stops IO when it ends. isJammed() combines a velocity threshold and current threshold with rising debounce. |
KickerIOSparkMax configures a SparkMax and a closed-loop setpoint with feedforward. Read the conversion factors and the units used by both sides before interpreting the controller's target. The jam trigger's existence does not show that any particular command uses it. |
| Hopper pivot | HopperPivot.runAngleCommand() clamps a goal, advances a trapezoid profile, logs goal and setpoint, and passes position and velocity to IO. runAgitate() alternates two angle commands on timeouts. |
HopperPivotIOSparkMax configures the right motor to follow the left with inversion; its angle method uses position control plus arm feedforward. It reads both motors' feedback. |
A commanded voltage, encoder speed and estimated position answer different questions. Neither code constants nor this diagram are measurements of the built robot or dimensions for fabrication.
What simulation can and cannot exercise
The SIM branch constructs HopperPivotIOSim, which steps a model, publishes a Mechanism2d and calculates voltage for the simulated angle. It also creates simulated hopper intake, flywheel, hood, drive modules and vision. Kicker and active floor instead receive empty IO implementations in this branch. The separately present KickerIOSim is empty at this revision and is not wired into the branch. A simulation that runs the command scheduler therefore cannot validate kicker or active-floor physical behavior here. This walkthrough inspects source; it does not claim a build or simulation was run.

This separate WPILib drivetrain simulation example shows a field view and encoder values. It does not depict the 2026 Team 1257 pivot or prove its simulation has been run. WPILib drivetrain simulation tutorial, FIRST and WPILib contributors, CC BY 4.0.
Trace an autonomous selection
getAutonomousCommand() returns the custom AutoChooser. LEFT_TRENCH sets a start pose, waits for the pivot goal, races a named path against intake, follows another path and calls targetedScore(). Path files exist in the same snapshot. The chooser describes intended scheduling; it is not evidence of an executed path. Unlike the driver bumper's readiness wait, targetedScore() waits for flywheel and hood readiness without the 0.5-second timeout shown in the binding.
Exercises
- Read a command group. Identify the commands that run in parallel under the right bumper and identify the condition that starts the feed mechanisms. What happens when the timeout expires first? Compare
targetedScore()in auto. - Follow the pivot signal. Make a table for requested goal, profiled setpoint and measured angle. Find where each originates and where each is logged. Why could setpoint and measurement differ?
- Inspect a simulation gap. Compare real and sim constructor arguments in
RobotContainer. Propose a minimal kicker simulation that records a target and updates a speed; define a test that would fail if its IO were still empty. Do not treat a model as hardware validation. - Review sequencing. In the
DEPOTbranch, find the standalonehopperPivot.runIntakeAngle()between two groups. Inspect whether that command has a completion condition before assuming the following path starts. Verify in a safe simulation before changing competition behavior.