Quote:
Originally Posted by Alan Anderson
That means supplying your own RobotMain() procedure, I think.
|
no, you can say something like this:
Code:
class RobotDemo: public SimpleRobot
{
DriverStation *ds;
int pos;
public:
RobotDemo()
{
ds = DriverStation::GetInstance();
if (ds->Get...
//switch code here and assign pos 1,2, or 3
}
void Autonomous()
{
switch(pos)
{
case 1:
Auto1();
...
}
}
void Auto1()
{
}
void Auto2()
{
}
void Auto2()
{
}
}