Giter VIP home page Giter VIP logo

2022rapidreact's Introduction

FRC 2022

Team 6940's 2022 FRC robot code. The whole Code is written in Java and is based off WPILib's Java control system.

The code is divided into several packages, each responsible for a different aspect of the robot function. This README explains setup instructions, the function of each package, and some of the variable naming conventions used. Additional information about each specific class can be found in that class' Java file.

Setup Instructions

  1. Clone this repo
  2. Run ./gradlew to download Gradle and needed FRC/Vendor libraries (make sure you're using Java 11 or greater)
  3. Run ./gradlew downloadAll to download FRC tools (ShuffleBoard, etc.)
  4. Run ./gradlew tasks to see available options
  5. Enjoy!

Visual Studio Code (Official IDE)

  1. Get the WPILib extension from the release page on this repository
  2. In .vscode/settings.json, set the User Setting, java.home, to the correct directory pointing to your JDK 11 directory

IntelliJ

  1. Run ./gradlew idea
  2. Open the 2022RapidReact.ipr file with IntelliJ
  3. When prompted, select import Gradle build

Eclipse

  1. Run ./gradlew eclipse
  2. Open Eclipse and go to File > Open Projects from File System...
  3. Set the import source to the 2022RapidReact folder then click finish

Basic Gradle Commands

  • Run ./gradlew deploy to deploy to the robot in Terminal (*nix) or Powershell (Windows)
  • Run ./gradlew build to build the code. Use the --info flag for more details
  • Run ./gradlew test to run all of the JUnit tests

Code Structure

6940 code structure

Code Highlights

  • Path following with PathPlanner(Credit @mjansen4857)

  • Shooter algorithm. We have two modes for shooting. One depends on the Ball Trajectory equation, the other depends on the interpolation table.

  • State machine control. We use state machine control in our subsystems, which brings tremendous convenience.

  • Pixy camera. We use Pixy2 to help us detect balls automatically both in tele-operated period and in autonomous period.

2022rapidreact's People

Contributors

hefzzjm avatar jeliya0808 avatar mendax1234 avatar

Stargazers

 avatar  avatar

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.