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
./gradlewto download gradle and needed FRC/Vendor libraries. (make sure you're using Java 17 or greater) - Run
./gradlew downloadAllto download FRC tools (ShuffleBoard, etc.) - Run
./gradlew tasksto 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.iprfile with IntelliJ - When prompted, select import Gradle build
- Run
./gradlew deployto deploy to the robot in Terminal (*nix) or Powershell (Windows) - Run
./gradlew buildto build the code. Use the--infoflag for more details. - Run
./gradlew assembleto build the code without running all unit tests. Use the--infoflag for more details. - Run
./gradlew testto run all the JUnit tests.
