View Single Post
  #2   Spotlight this post!  
Unread 21-02-2006, 01:13
MichaelGoldfarb MichaelGoldfarb is offline
Registered User
AKA: Goldfarb
FRC #0312 (Heatwave)
Team Role: Programmer
 
Join Date: Aug 2004
Rookie Year: 2003
Location: St. Pete, FL
Posts: 11
MichaelGoldfarb is an unknown quantity at this point
Send a message via AIM to MichaelGoldfarb Send a message via MSN to MichaelGoldfarb
Re: Relay Programming Questions...

The best way to do this is with a simple state machine. You can do this by using one variable to act as a counter, and then incrementing that counter every program loop. With just simple if/else statements you can change the sate of several outputs and then reset your counter and await activation again.

If you are still stuck I'll post an example for you.
__________________
I'm crazy!