Autonomous mode runs for the first 15 seconds of each match without driver input. Spectrum uses PathPlanner to design robot paths visually and wire them to WPILib commands throughDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/spectrum3847/2026-Spectrum/llms.txt
Use this file to discover all available pages before exploring further.
Auton.java. The result is a set of named routines selectable from SmartDashboard before the match, each composed of path segments interleaved with mechanism commands.
PathPlanner concepts
A PathPlanner path defines the physical trajectory the robot drives — a sequence of waypoints the robot passes through, along with velocity and rotation constraints. An auto is a higher-level sequence that chains multiple paths and commands together into a complete routine.| Concept | Description |
|---|---|
| Waypoint | A field-relative position (and optional heading) the robot passes through |
| Event marker | A named trigger attached to a position on the path that fires a command |
| Auto | A named sequence of paths and commands stored in deploy/pathplanner/ |
src/main/deploy/pathplanner/. PathPlanner’s desktop GUI writes these files; the robot code reads them at runtime using PathPlannerAuto and PathPlannerPath.
Event triggers
Auton.java declares EventTrigger constants for each named event marker used in PathPlanner:
"intake" during path execution, autonIntake fires and any commands bound to it via .onTrue() run automatically.
Running a PathPlanner auto
SpectrumAuton wraps PathPlannerAuto with a short 10 ms settling delay and supports optional mirroring for field symmetry:
SpectrumAuton segments with a launch() command that aims and fires before the next path begins:
SmartDashboard chooser
setupSelectors() populates a SendableChooser<Command> and pushes it to SmartDashboard under the key "Auto Chooser":
autonomousInit via getAutonomousCommand(), which falls back to a print command if no selection is found.
Available routines
The routines use letter codes where T = top fuel zone and B = bottom fuel zone, indicating the order of field zones visited per path segment:| Routine | Sides | Description |
|---|---|---|
TBTB | Left / Right | Four-segment top-bottom alternating routine |
TBTT | Left / Right | Three-segment variant ending top-top |
TTTT | Left / Right | Four-segment top-only routine |
BBBB | Left / Right | Two-launch bottom-heavy routine |
Optional - TBT | Left / Right | Three-segment with configurable delay |
Optional - BBB | Left / Right | Three-segment bottom routine |
2nd Man - TBTB | Left / Right | Delayed start for alliance coordination |
2nd Man - BBD | Left / Right | Delayed start bottom variant |
SECOND_MAN_DELAY (1.0 s) at the start so a partner robot can clear the zone first.
Dynamic pathfinding
For situations that require navigating to an arbitrary field pose at runtime,Auton.java exposes a pathfinding helper:
Robot states
How EventTrigger results connect to the Coordinator and subsystem commands.
Project structure
Where PathPlanner path files live in the deploy directory.
