Java robot code for the 2026 FRC season, built on WPILib and AdvantageKit.
- WPILib 2026 (includes Java 17 and VS Code extensions)
- A roboRIO-connected robot or simulation environment
Use the Gradle wrapper — no separate Gradle installation needed.
Build (compile + check):
./gradlew buildDeploy to robot:
./gradlew deployRun in simulation:
./gradlew simulateJavaThis project uses Spotless with Google Java Format. Formatting is applied automatically on every build.
Apply formatting manually:
./gradlew spotlessApplyCheck formatting without modifying files:
./gradlew spotlessCheckCI will fail if
spotlessCheckdoes not pass. Always runspotlessApplybefore pushing.
The ascope-assets/ directory contains custom robot models and camera configurations for AdvantageScope.
To enable them in AdvantageScope:
- Open AdvantageScope.
- Go to Help → Show App Directory (or press
Cmd/Ctrl+Shift+.). - In your AdvantageScope settings (or via File → Preferences), set the Custom Assets folder to the
ascope-assets/directory in this repository.- Example path:
/path/to/Rebuilt/ascope-assets
- Example path:
- Restart AdvantageScope. The robot model and camera views will appear in the 3D field viewer.
- Fork or branch from
main. - Run
./gradlew buildlocally to verify your changes compile and pass formatting. - Open a pull request targeting
main. CI will run a build check and Spotless formatting check automatically. - Keep PRs focused — one feature or fix per PR.