View Single Post
  #5   Spotlight this post!  
Unread Yesterday, 13:49
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,764
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: So apparently flat sequence structures don't work well in Teleop.

Quote:
Originally Posted by Mark McLeod View Post
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
Reply With Quote