Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
edreed committed Jan 12, 2024
1 parent cf67f9c commit a0fb3d0
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions README.md
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 ![WPILib](doc/image/wpilib-24.png) 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 ![WPILib](doc/image/wpilib-24.png) 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"
```
Binary file added doc/image/wpilib-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/image/wpilib-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a0fb3d0

Please sign in to comment.