8#include <frc2/command/Command.h>
10#include <initializer_list>
36 void AddCommand(std::initializer_list<AutonomousCommand*> commands);
Allow user to select from auto routines using the default dashboard autonomous selector.
Definition: auto_selector.h:16
std::vector< AutonomousCommand * > m_commands
All autonomous commands that can be selected.
Definition: auto_selector.h:61
AutoSelector()
Initialize with no available auto routines. More may be added later.
Definition: auto_selector.cpp:9
void SetDefaultCommand(AutonomousCommand *defaultCommand)
Set the default command to run if user selection is invalid.
Definition: auto_selector.cpp:28
frc2::Command * GetSelectedCommand() const
Get the command selected by the user on the dashboard. Will return default command if no match is fou...
Definition: auto_selector.cpp:32
void AddCommand(std::initializer_list< AutonomousCommand * > commands)
Add a set of commands to the selector.
Definition: auto_selector.cpp:18
AutonomousCommand * m_default
Command to run if dashboard selection is invalid.
Definition: auto_selector.h:62
void UpdateSelectorEntries() const
Update dashboard with latest command list.
Definition: auto_selector.cpp:52
A command that can be selected from the dashboard.
Definition: autonomous_command.h:14