Giter VIP home page Giter VIP logo

vex-autonomous-selector's Introduction

Vex Autonomous Selector for PROS

Screenshot_of_Selector

This is the Developer branch and as a result an entire PROS Project is included for development

How to use:

  1. Download the zip file release from here: Releases
  2. Run this command from terminal: prosv5 c fetch [email protected]
  3. Then cd into your pros project directory in your terminal.
  4. And Run this command from terminal: prosv5 c apply autoSelect
  5. Put this: #include "autoSelect/selection.h" at the top of your main.cpp file in your PROS Project.
  6. Place selector::init(); in void initazlize(){} in your main.cpp file.
  7. Make if statements in your void void autonomous() {} like so:

if(selector::auton == 1){ //run auton for Front Red }

  1. Create multiple if statements for all possible numbers of selector::auton.
  2. All default cases are listed below:
  • selector::auton == 1 : Red Front
  • selector::auton == 2 : Red Back
  • selector::auton == 3 : Do Nothing
  • selector::auton == -1 : Blue Front
  • selector::auton == -2 : Blue Back
  • selector::auton == -3 : Do Nothing
  • selector::auton == 0 : Skills

How to customize the selector

All configuration is done from the autoSelect/selection.h file.

// selector configuration
#define HUE 360 // color of theme from 0-360
#define AUTONS "Do Nothing", "Front", "Back" // names of the autonomous programs
#define DEFAULT 1 // default auton
  • HUE - Controls the color of the theme.
  • AUTONS - A list of every autonomous option. This list can be made any length, but may format weirdly.
  • DEFAULT - The auton will be selected on startup. This is required for starting a programming skills run from the controller.

Credit also to Sully|80508X

vex-autonomous-selector's People

Contributors

kunwarsahni01 avatar marsgate 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.