View Single Post
  #5   Spotlight this post!  
Unread 13-04-2009, 21:12
JasonF JasonF is offline
Registered User
FRC #2848 (The All Sparks)
Team Role: Programmer
 
Join Date: Apr 2009
Rookie Year: 2009
Location: Irving Texas
Posts: 24
JasonF is an unknown quantity at this point
Re: Programming drivers station digital outputs

Hey Mr. Alaniz
Figured I should make an account eventually.


To clarify, The problem was we were attempting to set the digital outputs on the driver station in 4 places within the same while loop. Our outputs on the front panel were flickering all over the place, and as I was working on it I realized we were writing 4 different arrays at the same time.

So In Summary, Use only one Set Digital Output per loop and control the Outputs (Hi/Lo) by building an array with 8 boolean elements.

An additional Note: While the Driver Station and almost everywhere else say Digital Output 1-8, for Array purposes 1 is 0 (So not 1-8, 0-7)

Maybe everyone here already knew that but that was news to me after working on it for a couple hours of head scratching