|
Re: methods for Switchable Autonomous Modes
Really folks - providing you use Smartdashboard, the simplest and most intuitive way to do autonomous is SendableChooser. You don't even have to have real 'Commands' as shown above. The pointer given to AddObject is just a pointer -- point it back to the string itself and compare at autonomous time to decide what the user has chosen. It's super elegant and flexible over time. No need for switches, documenting said switches, holding down buttons, etc.
bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
|