Git Product home page Git Product logo

zap's Introduction

Zap

Zap is FRC Team 1816's robot for the 2022 FRC season, FIRST Rapid React. This software uses Java 11, the WPILib library, and the CTRE Phoenix library.

Prerequisites

  1. You must have Java 11 installed on your system. You can download OpenJDK 11 here or download Oracle's JDK 11 here. Alternatively, this will be installed through the WPILib One-Click Installer.
  2. You must have an IDE of your choice installed. Visual Studio Code or IntelliJ IDEA are recommended as official and unofficial options. VSCode can be optionally installed using the WPILib One-Click Installer.
  3. You must have Git installed.
  4. It is recommended that you run the WPILib One-Click Installer. This includes the VSCode plugins as well as all NI software tools. It does NOT include any CTRE software tools.

Cloning

Open a new Bash shell and clone:

$ git clone https://github.com/TheGreenMachine/Zap.git

Importing

Importing into IntelliJ IDEA

  1. Clone the project into your desired folder.
  2. Open IntelliJ IDEA to the welcome screen.
  3. Do NOT select 'Open Project'. Instead, select 'Import Project'.
  4. Select Import project from external model. Then select 'Gradle'.
  5. Configure your Gradle options:
    • Make sure to select the "Use gradle 'wrapper' task configuration' option.
    • Verify that the Gradle JVM is set to 'Use Project JDK' (which should be Java 11).
    • Keep other options as their defaults.
  6. Select 'Finish'. Your project should load in and be set up without issues.

Importing into Visual Studio Code

  1. Make sure Visual Studio Code is properly set up with the Java Development Toolchains. Refer to the WPILib Screensteps Guide for further instructions.
  2. Clone the project into your desired folder.
  3. The WPILib VSCode extension should automatically detect and setup your project.

Build and Deploy

Build the project by running the build task through the Gradle wrapper. Just issue the following command in a Bash shell:

$ ./gradlew build

This command isn't always necessary as it is often run by your IDE.

Deploy the project to the robot by first connecting to the robot's wi-fi network and then running the following command:

$ ./gradlew deploy

The deploy task will call the build task automatically.

To clear previous built binaries and minimize the possibility of bugs, it is recommended to run the clean task before deploying:

$ ./gradlew clean deploy

2022 - FRC Team 1816 The Green Machine

zap's People

Contributors

ahshaam avatar arbitrary-2912 avatar cookienthusiast avatar ddaymn avatar georgealanzo avatar ianmcvann avatar miapirobotics avatar mikaelm24255 avatar moonythegreat avatar netarcx avatar nicholasl23638 avatar solarcranez avatar tagciccone avatar tfoxisu avatar wiryblue avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

zap's Issues

Move cancoder definition out of module definition

This is overly complicated and also limits remote sensors to swerve modules

If cancoder definitions had the same name as their motor you can just just lookup the cancoder id from the name of the motor.

i.e. something like this

getCancoderID(string motorName){
if cancoders has value for motorNamereturn id
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.