FRC Team 2910's robot code for the 2024 FRC game CRESCENDO.
- Continuous goal tracking
- Absolute turret location calculation on startup
- State machine architecture integrated with WPILIB subsystems
- AdvantageKit logging and IO abstraction layers
Here's how we have organized our code logically.
Thanks to FRC Teams 254 and 6328 for the inspiration.
autos
- contains autonomous frameworks and programs
commands
- contains classic WPILIB commands
config
- contains configuration frameworks with robot data
subsystems
- contains robot subsystems and overall robot state machine/superstructure
util
- contains utility classes
- Clone this repo
- Run
./gradlew
to download gradle and needed FRC/Vendor libraries. (make sure you're using Java 17 or greater) - Run
./gradlew downloadAll
to download FRC tools (ShuffleBoard, etc.) - Run
./gradlew tasks
to see available options - Have fun!
- Get the WPILib extension for easiest use from the VSCode Marketplace - Requires Java 17 or greater
- In
.vscode/settings.json
, set the User Setting,java.home
, to the correct directory pointing to your JDK 17 directory
- Run
./gradlew idea
- Open the
2024CompetitioRobot.ipr
file with IntelliJ - When prompted, select import Gradle build
- Run
./gradlew deploy
to deploy to the robot in Terminal (*nix) or Powershell (Windows) - Run
./gradlew build
to build the code. Use the--info
flag for more details. - Run
./gradlew assemble
to build the code without running all unit tests. Use the--info
flag for more details. - Run
./gradlew test
to run all the JUnit tests.