xwj199815 / frc1388-2013

Automatically exported from code.google.com/p/frc1388-2013
0 stars 0 forks source link

Add a way for the driver to select autonomous modes #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
We'd like a way for the driver to be able to select which behaviors the robot 
should perform in autonomous.  SmartDashboard provides several mechanisms which 
could be used to do this.  (See Issue #36.)

Perhaps the simplest to implement would be to keep a variable (or set of 
variables) on the robot, which are read from SmartDashboard, perhaps in 
GlobalPeriodic().  These variables could be initialized in RobotInit().  
Commands could then reference these variables to determine what to do.  For 
example, there could be a variable called Robot::autonomousDrive, which 
controls whether the robot drives in autonomous mode, and is used in 
AutonGroup().

Original issue reported on code.google.com by jtec...@gmail.com on 31 Mar 2013 at 2:03