Giter VIP home page Giter VIP logo

frc2018's Introduction

FRC2018

Code for Team 6141's 2018 Power Up Robot

Packages

Robot

Contains:

  • Robot: Main Robot Class that is used connect others classes. Has mostly unused methods for auto/teleop/test init and periodic

  • OI: All the joystick and xbox controls are contained in here. Maps buttons to commands and contains helper methods for commands

  • Robot Const: Stores most of the constant values in a single class for easy access and updating

Subsystems

Contains:

  • RobotControl: Master Subsystem that stores all others. Used to reduce code in Robot Class. Instantiates all contained subsystems and contains methods for sending smartdashboard updates to all substituaries. Important Methods:

    • Update: calls all subsidiary subsystems update methods
  • DriveTrain: Controls the main robot drivetrain. Contains instantiated drivetrain motors (VictorSp) and methods to control them Important Methods:

    • setSpeed: sets drivetrain motor speeds. Requres: leftSpeed, rightSpeed doubles
    • setSpeedAndTurn: calculates leftSpeed and rightSpeed, then calls setSpeed() with values. Requires: speed, turn doubles
    • update: prints current motor speeds to SmartDashboard
  • Intake: Controls the Claw Intake System. Contains instantiated claw motors (Spark) and methods to control them Important Methods:

    • setSpeed: sets claw motor speeds. Requres: leftSpeed, rightSpeed doubles
    • setSpeedAndTurn: calculates leftSpeed and rightSpeed, then calls setSpeed() with values. Requires: speed, turn doubles
    • stop: stops motors
    • update: prints current motor speeds to SmartDashboard
  • Elevator: Controls the Up/Down Elevator that carries claw. Containts instantiated elevator motor (Spark) and methods to control it Important Methods:

    • setSpeed: sets elevator motor speed. Requires speed double
    • stop: stops motor
    • update: prints current motor speed to SmartDashboard

frc2018's People

Contributors

fynnsu avatar

Watchers

James Cloos 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.