How persevere-5962/2027robotcode works
This is an FRC robot runtime scaffold: WPILib starts the robot, whose lifecycle setup selects real, simulation, or replay behavior, resolves robot identity, and configures AdvantageKit logging. The only sampled drivetrain code is a module I/O contract; no subsystem orchestration, autonomous commands, or vision integration is present in the source tree. The README documents swerve and PhotonVision as the season’s stack, but the available source does not show their runtime wiring.
Main entry points: Robot.java Robot lifecycle · RobotIdentity.java Robot identity · Main.java Application entry · Constants.java Runtime mode
Components 13
Startup and mode
- Application entry
src/main/java/first/Main.java
Robot runtime
- Robot lifecycle
src/main/java/first/robot/Robot.java - Runtime mode
src/main/java/first/robot/Constants.java - Robot identity
src/main/java/first/robot/RobotIdentity.java - AdvantageKit logger
src/main/java/first/robot/Robot.java - WPILOG files
- NetworkTables publisher
- Identity marker file
- Driver Station alert
Hardware boundary
- Module I/O contract
src/main/java/first/robot/subsystems/drive/io/ModuleIO.java - SDS MK5n swerve
- PhotonVision
Other components
- Robot operator
Connections 10
- Robot operator → Application entry: starts robot
src/main/java/first/Main.java - Application entry → Robot lifecycle: starts
src/main/java/first/Main.java - Robot lifecycle → Runtime mode: selects mode
src/main/java/first/robot/Robot.java - Robot lifecycle → Robot identity: resolves identity
src/main/java/first/robot/Robot.java - Robot lifecycle → AdvantageKit logger: configures and starts
src/main/java/first/robot/Robot.java - AdvantageKit logger → WPILOG files: writes logs
src/main/java/first/robot/Robot.java - AdvantageKit logger → NetworkTables publisher: publishes telemetry
src/main/java/first/robot/Robot.java - Robot identity → Identity marker file: reads on real
src/main/java/first/robot/RobotIdentity.java - Robot identity → Driver Station alert: alerts on failure
src/main/java/first/robot/RobotIdentity.java - SDS MK5n swerve → Module I/O contract: I/O boundary