View Single Post
  #4   Spotlight this post!  
Unread Yesterday, 13:11
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,940
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: So apparently flat sequence structures don't work well in Teleop.

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):
Attached Thumbnails
Click image for larger version

Name:	button-check.jpg
Views:	11
Size:	15.8 KB
ID:	21768  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : Yesterday at 13:30.
Reply With Quote