View Full Version : Periodic Tasks Vi
jhellr13
18-02-2011, 20:13
In short, we have our minibot deployment code set. It works with timed commands and such. Do we have to move it into the teleop vi, or just leave it in the periodic tasks vi? Does it have to be in both?
Thanks
Mark McLeod
19-02-2011, 08:34
Timed-delayed tasks have to be in Periodic Tasks, because delaying Teleop will lose diver control for that amount of time (while the robot runs amuck) or will trip a shutdown of your 2-motor/4-motor drive.
If you want to handle time delays in Teleop you'd need to devise a State Machine that just checks every 50Hz loop, if the time to delay has passed.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.