This repository contains Team 254's robot code for the 2021 FRC At Home Challenges. The code is written in Java and is based off of WPILib's Java control system.
The code is divided into several packages, each responsible for a different aspect of the robot function. This README explains setup instructions and some of the style conventions used.
- Clone this repo
- Run
./gradlew
to download Gradle and needed FRC/Vendor libraries (make sure you have Java 11 or greater, as that is required) - Run
./gradlew downloadAll
to download FRC tools (ShuffleBoard, etc.) - Run
./gradlew tasks
to see available options - Enjoy!
- Get the WPILib extension from the release page on this repository
- Run
./gradlew idea
- Open the
FRC-2021-Home-Challenges.ipr
file with IntelliJ - When prompted, select import Gradle build
- Run
./gradlew eclipse
- Open Eclipse and go to File > Open Projects from File System...
- Set the import source to the
FRC-2021-Home-Challenges
folder then click finish
- 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 test
to run all of the JUnit tests
If you want to contribute, please read through and follow our Git/GitHub Guidelines
- k*** (i.e.
kDriveWheelTrackWidthInches
): Final constants - m*** (i.e.
mPathFollower
): Private instance variables