🤖 Code for our 2021 competition robot.
We use three total joysticks to control the robot:
- 2 x Logitech Attack 3 (
joystick_left
andjoystick_right
) - 1 x Logitech Extreme 3D Pro (
joystick_alt
)
Gradle allows us to build and deploy our Java code to the robot
- Right-click on the
build.gradle
file in Visual Studio Code and pressBuild Robot Code
- Select the Java Build from the dropdown at the top to build the code
- Fix any problems that come up and repeat steps 1 and 2 until the terminal says BUILD SUCCESSFUL
- A common problem that may come up has to do with formatting, which is shown by the error
Execution failed for task ':spotlessJavaCheck'
. You can fix this problem by running./gradlew :spotlessApply
in a terminal window
- A common problem that may come up has to do with formatting, which is shown by the error
- Connect to the robot’s wifi
- Right-click on the
build.gradle
file in Visual Studio Code and pressDeploy Robot Code
- Select the Java Build from the dropdown at the top to deploy the code