Make sure you have Git installed, as well as some form of code editor. Visual Studio Code is recommended, as well as the Microsoft Extension Pack for Java.
- Open a terminal and
cd
into the directory you want to clone the repository into. - Install Git if you haven't already.
- Run the command
git clone --recurse-submodules https://github.com/Pigmice2733/frc-2022.git
. The--recurse-submodules
is important because it tells git to include robolib when it downloads everything.
And you're done! The project will have been downloaded into a new folder called frc-2022
.
- Open a terminal and
cd
into the project directory (frc-2022
). - To build the code, run
./gradlew build
. - To run all unit tests, run
./gradlew test
. - To deploy the code to the robot, make sure you're connected to the robot either over WiFi or through Ethernet. Then run
./gradlew deploy
.