Code Map
πΊοΈ Code Map
A Code Map is a one-page visual reference that shows every important file in the robot project and what it does. Use this as a quick-reference sheet when navigating the codebase.
Robot Project Structure
Browse the full project on GitHub:
frc/robot/βββ Main.java β Entry point; starts the robot programβββ Robot.java β Handles the robot lifecycle (init, periodic, teleop, auto)βββ RobotContainer.java β Wires subsystems to controller buttons and selects autosβββ Constants.java β Stores configuration values (CAN IDs, speeds, limits)βββ LimelightHelpers.java β Utility methods for Limelight vision cameraβββ Telemetry.java β Sends data to the driver dashboardβββ TrajectoryCalculations.java β Math for shooting trajectoryββββ subsystems/β βββ IntakeSubsystem.java β Picks up game pieces with rollers and deploy mechanismβ βββ ShooterSubsystem.java β Launches notes with dual flywheels, feeder, and hoodβ βββ TurretSubsystem.java β Rotates the shooter left/right to aimβ βββ ClimberSubsystem.java β Handles endgame climbing with elevator and servosβ βββ CommandSwerveDrivetrain.java β Swerve drive for omnidirectional movementββββ commands/β βββ AutoShootCommand.java β Coordinates turret aiming, spin-up, and note feedingββββ generated/ βββ TunerConstants.java β Auto-generated swerve config from CTRE Tuner X (read-only!)Core Files
| File | Role |
|---|---|
Entry point β calls RobotBase.startRobot() to launch the robot program | |
Manages the robot lifecycle: robotInit, teleopPeriodic, autonomousInit, etc. | |
| Creates subsystems, binds controller buttons to commands, selects autonomous routines | |
| Central location for configuration values: CAN IDs, motor speeds, and limits |
Subsystems
| Subsystem | File | What It Controls |
|---|---|---|
| IntakeSubsystem | Picks up game pieces from the ground using rollers and a deploy mechanism | |
| ShooterSubsystem | Launches notes using dual flywheels, a feeder, indexer, and adjustable hood | |
| TurretSubsystem | Rotates the shooter left/right to aim at the hub | |
| ClimberSubsystem | Handles endgame climbing with elevator and servos | |
| CommandSwerveDrivetrain | Swerve drive system for omnidirectional movement |
Commands
| Command | File | What It Does |
|---|---|---|
| AutoShootCommand | Coordinates turret aiming, flywheel spin-up, and note feeding |
βοΈ Your Task
Print or copy this page and keep it next to your computer as a quick reference. When you need to find a file, check the map first!