Skip to content

GuestUser1000101/NRGRobot2024

 
 

Repository files navigation

NRGRobot 2024

The robot code of FRC Team 948 - Newport Robotics Group for FIRST Robotics Competition 2024 CRESCENDO presented by Haas game.

Setup

  1. Install Git from https://git-scm.org.

  2. Follow the instructions at WPILib Installation Guide to install the FRC development environment.

  3. Clone the repository.

    • Windows

      PS> git clone https://github.com/NRG948/NRGRobot2024.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/NRGRobot2024.git
  4. Create 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.

    gpr.user=USERNAME
    gpr.key=TOKEN

Build

To build the robot code, use the "WPILib: Build Robot Code" command from the WPILib 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\2024\jdk" 
  • Linux/MacOS

    $ ./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 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\2024\jdk" 
  • Linux/MacOS

    $ ./gradlew deploy -Dorg.gradle.java.home="~/wpilib/2024/jdk" 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%