|
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
|