Giter Site home page Giter Site logo

frc6854 / 2021infiniterechargeofficial Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 5.88 MB

Code for 2021 Infinite Recharge by FRC 6854

Home Page: http://team6854.com

License: MIT License

Java 95.79% Python 4.21%
robot frc motion-profiling path-planning limelight vision robotics

2021infiniterechargeofficial's Introduction

2021 Infinite Recharge Official

Build Status

Build project with internet connection before deploying to robot to fetch all vendordeps. Also use latest VIKING package.

The best way to get started with understanding the code here is going to WPILib Docs to looks at how you should get started using WPILib and an overview of an FRC robot program.

Layout

The current project uses our layout from last season.

frc/robot/subsystems contains all of our moving parts on our bot. For example our drivetrain and conveyor code is found here. We are using the new command-based WPILib package this year for our robot structure. This means that the way we create Commands and Subsystems will change a bit from what it was last year but the logic is almost exactly the same. Our subsystems also use the Singleton pattern where we can. This prevents multiple instances of a subsystem being created and it is more performant when you want to reference the subsystem somewhere else.

frc/robot/commands contains all of code for controlling the subsystems during runtime. They run in the CommandScheduler and some commands are in an infinite loop so that they will run all the time when another command isn't scheduled. For example our ArcadeDrive command will run forever since there should be not exit case.

frc/robot/paths contains all of code for the autonomous paths that we compile along with the code.

frc/robot/utils contains helper classes that we use for calculations, wrappers, and etc.

frc/robot/auto pre-planned autonomous code that is used when we enable the robot in Autonomous mode. The AutoManager contains the logic to select the auto command, and frc/robot/auto/auto_commands contains the CommandGroups with the logic for the individual auto plans.

2021infiniterechargeofficial's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

yoannayue

2021infiniterechargeofficial's Issues

Addressable LED Dependency

The current Addressable LED implementation depends on an external Arduino, since WpiLib supports PWM WS2812, and the addressable LED can be attached to the PWM port on RoboRIO, the code on Arduino can be move to execute on RoboRIO.

The LEDController subsystem can be re-implemented with AddressableLED class provided by WpiLib.

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.