View Single Post
  #3   Spotlight this post!  
Unread 25-01-2009, 00:22
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: reading multiple digital inputs

This works pretty much the same in Windriver--basically, you create a function that updates an array with current values every time it's called, and then use that array.

I'm not quite sure why you would want to do this though--really, the code to read all the inputs at once would be more than the code to read them individually(since you have to store them and retrieve them from an array)
__________________
Get yer robot source code here!