forked from NRG948/NRGRobot2024
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# NRGRobot 2024 | ||
|
||
The robot code of [FRC Team 948 - Newport Robotics Group](https://www.nrg948.com) for FIRST Robotics Competition 2024 [CRESCENDO presented by Haas](https://youtu.be/9keeDyFxzY4?si=yItH8LBi_33p9NN0) game. | ||
|
||
## Setup | ||
|
||
1. Install Git from https://git-scm.org. | ||
|
||
2. Follow the instructions at [WPILib Installation Guide](https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html) to install the FRC development environment. | ||
|
||
3. Clone the repository. | ||
|
||
* Windows | ||
|
||
```powershell | ||
PS> git clone https://github.com/NRG948/NRGRobot2024.git | ||
``` | ||
* Linux/MacOS | ||
* Create an SSH key if you do not already have one. | ||
```sh | ||
$ 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. | ||
```sh | ||
$ git clone [email protected]:NRG948/NRGRobot2024.git | ||
``` | ||
4. [Create a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with only `packages:read` scope. | ||
5. Add the following entries to `$HOME/.gradle/gradle.properties` replacing `USERNAME` with your GitHub user name and `TOKEN` with the token value itself. | ||
```properties | ||
gpr.user=USERNAME | ||
gpr.key=TOKEN | ||
``` | ||
## Build | ||
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 | ||
```powershell | ||
PS> ./gradlew build -Dorg.gradle.java.home="C:\Users\Public\wpilib\2024\jdk" | ||
``` | ||
* Linux/MacOS | ||
```sh | ||
$ ./gradlew build -Dorg.gradle.java.home="~/wpilib/2024/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. | ||
## Deploy | ||
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 | ||
```powershell | ||
PS> ./gradlew deploy -Dorg.gradle.java.home="C:\Users\Public\wpilib\2024\jdk" | ||
``` | ||
* Linux/MacOS | ||
```sh | ||
$ ./gradlew deploy -Dorg.gradle.java.home="~/wpilib/2024/jdk" | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.