View Single Post
  #7   Spotlight this post!  
Unread 19-01-2009, 20:01
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Using driver station digital inputs

The digital and analog I/O on the driver station are for the purpose of creating custom UIs for the robot. It is true that there are no pull-ups on the digital inputs, so you have to explicitly do that yourself or you'll get unpredictable results. You can also do tricks like use a set of resistors and a switch to use one of the analog inputs as many digital (switch) inputs if you're running out of real digital inputs.

Be aware that in the future it is possible that you will not be able to read the driver station values during the autonomous period. So plan on writing the code to store values in variables during the disabled period before autonomous then use them in the autonomous period.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote