|
Re: So apparently flat sequence structures don't work well in Teleop.
Quote:
Originally Posted by Mark McLeod
Here's a similar example that runs in Periodic Tasks: http://www.team358.org/files/program...tofTimedAction
The tie-in of waiting on a button release for the 3rd action step would require another While Loop inside the 3rd sequence frame that keeps checking for button=False, before completing.
Something like this, where it waits 1000ms and for button 2 to be False (either one finishes first it waits for the other to complete):
|
Doesn't that block all other execution in PeriodicTasks until the Sequence completes? I mean, yay not killing teleop, but that doesn't seem like that much better of an option since you can only do one of these things at a time.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.
Lone Star Regional Troubleshooter
|