|
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.
|