Java/WPILib robot code for FRC Team 4687 Spartobots' 2026 robot. The project uses command-based WPILib with AdvantageKit logging, PathPlanner pathfinding, PhotonVision camera integration, and MapleSim-based desktop simulation.
- Swerve drive with pose estimation, programmatic autonomous, and field-relative auto-assist targets.
- Game-piece stack made of intake, indexers, and a hooded shooter with homing and calibration tooling.
- Shared NetworkTables and AdvantageKit logging rooted at
Spartobots2026for tuning, telemetry, simulation, and operator dashboards.
- Install WPILib 2026 and Java 17.
- From the repo root, run:
./gradlew test./gradlew simulateJava./gradlew deploy
- Open AdvantageScope or another NT4 client when tuning or simulating.
- Use
src/main/java/frc/robot/Constants.javato choose desktopSIMvsREPLAY. A real roboRIO always runs inREAL.
./gradlew testruns unit tests../gradlew buildbuilds deployable artifacts../gradlew simulateJavalaunches desktop simulation../gradlew deploydeploys robot code plussrc/main/deploy/assets to the roboRIO../gradlew replayWatchopens the AdvantageKit replay utility.
compileJava depends on spotlessApply, so normal Gradle builds automatically reformat Java and Gradle sources.
src/main/java/frc/robotrobot code, subsystem logic, targeting, simulation, and operator flows.src/test/java/frc/robotunit tests for autonomous behavior, targeting, interlocks, parsing, and drive logic.src/main/deployPathPlanner assets and AdvantageScope robot assets copied during deploy.docsrunbooks and subsystem-level documentation.vendordepsWPILib/vendor dependency manifests.
- Development Workflow
- Software Overview
- Driver Controls
- Simulation Workflow
- NetworkTables Layout
- Real Robot Tuning and Calibration
- Shooter Calibration Mode
Project-specific code in this repository is licensed under the BSD 3-Clause
License as Team 4687 Spartobots code. See LICENSE for the repo license and
THIRD_PARTY_NOTICES.md, AdvantageKit-License.md, and WPILib-License.md
for retained third-party attribution and license notices.