View Single Post
  #6   Spotlight this post!  
Unread 28-01-2009, 11:16
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Please help Program Relays in WindRiver....

I have three suggestions. First, notice that I forgot to declare the previous_state variable in my example. (it should be just like the current_state one).

Second, notice that I accidentally used a close brace } instead of a close parenthesis ) character after the test expression on the third if.

Third, just use what I posted as an example of how to do it, not as a complete copy-and-paste solution to your specific problem. Read it, understand it, and then write your own code.

Last edited by Alan Anderson : 28-01-2009 at 11:20.