The robot code of FRC Team 948 - Newport Robotics Group for FIRST Robotics Competition 2023 CHARGED UP presented by Haas game.
-
Install Git from https://git-scm.org.
-
Follow the instructions at WPILib Installation Guide to install the FRC development environment.
-
Clone the repository.
-
Windows
PS> git clone https://github.com/NRG948/NRGRobot2023.git
-
Linux/MacOS
-
Create an SSH key if you do not already have one.
$ ssh-keygen -t rsa
Press ENTER to accept the default location.
Enter a passphrase and press ENTER, or simply press ENTER to use no passphrase.
-
Clone the repository.
$ git clone [email protected]:NRG948/NRGRobot2023.git
-
-
-
Create a personal access token with only
packages:read
scope. -
Add the following entries to
$HOME/.gradle/gradle.properties
replacingUSERNAME
with your GitHub user name andTOKEN
with the token value itself.gpr.user=USERNAME gpr.key=TOKEN
To build the robot code, use the "WPILib: Build Robot Code" command from the menu in Visual Studio Code, or run the following command from a command-line:
-
Windows
PS> ./gradlew build -Dorg.gradle.java.home="C:\Users\Public\wpilib\2023\jdk"
-
Linux/MacOS
$ ./gradlew build -Dorg.gradle.java.home="~/wpilib/2023/jdk"
NOTE: When using external library SNAPSHOTs, you may need to explicitly refresh the Gradle build cache to pickup changes. In that case, include the
--refresh-dependencies
option in in your build command.
To deploy the robot code, use the "WPILib: Deploy Robot Code" command from the menu in Visual Studio Code, or run the following command from a command-line:
-
Windows
PS> ./gradlew deploy -Dorg.gradle.java.home="C:\Users\Public\wpilib\2023\jdk"
-
Linux/MacOS
$ ./gradlew deploy -Dorg.gradle.java.home="~/wpilib/2023/jdk"