View Single Post
  #2   Spotlight this post!  
Unread 21-02-2016, 11:39
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Teleop Subroutine for semi-autonomous shooting

The Periodic Tasks VI is a good place for this kind of thing. Have a loop that waits for the start signal -- the button press, in your case -- and runs through a flat sequence doing everything it needs to. When the sequence is finished, wait for the button to be released in case the operator hasn't let go yet, and let the loop start over to wait for the next button press.
Reply With Quote