Troy Robotics - FRC 2023 Codebase
Team 3952's robot for the 2023 Season "FIRST Charged Up" using Java and the WPILib library.
Setup Instructions
Requirements
- You NEED to have Java installed on your local system. Either download Oracle JDK or OpenJDK
- You need a code editor, preferably Visual Studio Code or IntelliJ IDEA
- You must have Git installed
- Run the WPILib Installer this will include all the needed VSCode plugins and all of the NI software tools. Make sure to download the correct file for your operating system (Windows users download "WPILib_Windows-2023.2.1.iso" and start the install .EXE)
Cloning
Importing
Visual Studio Code
- Clone the project into a known folder location
- The WPILib VSCode extension should automatically detect the project so you can start editing
Basic Bash Commands
- Run
./gradlew
to download gradle and needed FRC/Vendor libraries
- Run
./gradlew build
to build the code. Use the --info
flag for more details
- To deploy code into the robot, you must first connect to the robot's Wi-Fi network then run
./gradlew deploy
- It is recommended to run the clean task before deploying again to clear previous deployed binaries run
./gradlew clean deploy
- Run
./gradlew test
to run all of the JUnit tests
- Run
./gradlew tasks
to see available options
If you run into any gradle errors remember to check your java installation path
Contributing
- Read documentation for WPILib
- Check the current issues page
- Previous examples
- Add a comment to explain what your contributed code does
- Ask for help!
Other Code We Used