01-30-2009 05:50 AM
Probably a simple answer, but assume I'm:
Can I actually count on the periodic tasks running during Independent autonomous?
My confusion comes in that the Autonomous independent vi seems to occur solely down in the begin.vi. Still hard to get a mental grasp on this dataflow stuff at times...
(I'm counting on passing data via Global variables - such as "desired left side speed" to my traction control periodic task. That periodic task will than jam out PWM values to the motors appropriately.)
Thanks!
01-30-2009 08:59 AM
Yes, periodic tasks always runs. The autonomous independent isn't run in Begin, rather a reference is saved. That reference is used deeper in the framework to start and stop autonomous independent whenever the robot enters and leaves autonomous.
Your method of doing control loops and motor outputs in the periodic tasks and using global variables to communicate is exactly what we've been doing.