View Single Post
  #2   Spotlight this post!  
Unread 10-04-2009, 20:13
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Programming drivers station digital outputs

Is there any chance it has something to do with the program running at a different rate?
The driver station only sends/receives data every 20ms.
(Alternately it could be due to a Front Panel control resetting to its default value)

EDIT:
I had misunderstood you, and thought it was running correctly in a temporary deployment, but not as a run-time startup. Execution rate may still be the problem, but in this case it would be that it's running too slow. I don't know whether the DS resets a digital output if it doesn't get a reply soon enough. Considering it's UDP, it's unlikely, but the best place for this code is in "periodic tasks" nonetheless (with a 20ms 'wait' function).
__________________
-- Marshal Horn

Last edited by kamocat : 10-04-2009 at 22:25.