View Single Post
  #1   Spotlight this post!  
Unread 26-03-2010, 22:25
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: Using DS Virtrual switches to select autonomous modes

i would put the code either in disabledperiodic, autonomousinit, or just right where you need the value (can't say without knowing more on how your code is structured)

as for reading in the values i want to say its:

DriverStation *ds;

ds=DriverStation::GetInstance();

ds->GetDigitalIn(1);
ds->GetDigitalIn(2);
Reply With Quote