View Single Post
  #1   Spotlight this post!  
Unread 26-03-2010, 01:08
Kyledoo Kyledoo is offline
Registered User
FRC #2603
 
Join Date: Jan 2010
Location: Ohio
Posts: 24
Kyledoo is an unknown quantity at this point
Using DS Virtrual switches to select autonomous modes

1. Is it possible?
2. How do you read the values from the Driver Station in the program?
3. To do this for autonomous, where do I need to put the code that says to read the inputs?
I THINK it has to be done like this

DriverStation *ds;
ds = new DriverStation;
bool in1 = ds->GetDIO(1);
bool in2 = ds->GetDIO(2);
(not sure if they are called DIO...)
As always, any help is appreciated, alot of times once I figure something simple out, like where to put the code, everything else makes sense!
Reply With Quote