RIT VEXU Core API
|
#include <auto_chooser.h>
Classes | |
struct | entry_t |
Public Member Functions | |
AutoChooser (std::vector< std::string > paths, size_t def=0) | |
size_t | get_choice () |
Protected Attributes | |
size_t | choice |
std::vector< entry_t > | list |
Autochooser is a utility to make selecting robot autonomous programs easier source: RIT VexU Wiki During a season, we usually code between 4 and 6 autonomous programs. Most teams will change their entire robot program as a way of choosing autonomi but this may cause issues if you have an emergency patch to upload during a competition. This class was built as a way of using the robot screen to list autonomous programs, and the touchscreen to select them.
AutoChooser::AutoChooser | ( | std::vector< std::string > | paths, |
size_t | def = 0 ) |
Initialize the auto-chooser. This class places a choice menu on the brain screen, so the driver can choose which autonomous to run.
brain | the brain on which to draw the selection boxes |
size_t AutoChooser::get_choice | ( | ) |
Get the currently selected auto choice
Return the selected autonomous
|
protected |
the current choice of auto
|
protected |
< a list of all possible auto choices