View Single Post
  #1   Spotlight this post!  
Unread 23-03-2005, 08:25
DemonYawgmoth's Avatar
DemonYawgmoth DemonYawgmoth is offline
Registered User
AKA: Artem Kochnev
FRC #1396 (Pyrobots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Staten Island, NY
Posts: 28
DemonYawgmoth is an unknown quantity at this point
Send a message via AIM to DemonYawgmoth Send a message via MSN to DemonYawgmoth
Question about switching autonomous modes

One of our mentors bought us these switches for us to switch between autonomous modes, and we think that this is an analog switch, but we're not sure. Now, where would we hook these switches up, then how would we read a value from them in the code, and then, what would we test for, to see which autonomous mode to run. We know that digital switches have either a 0 or a 1, but how would we test for a 10 bit value, which I believe that the analog switches return. Any help is greatly appreciated.