View Single Post
  #14   Spotlight this post!  
Unread 10-03-2015, 22:52
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: Need help with logic

Quote:
Originally Posted by bacarpenter View Post
Okay so I put it inside of the while loop and it works but it'll only work once.
In order for the outer While to run again, everything inside it has to complete. You have three Flat Sequences there, each waiting for a joystick button and then a limit switch before they will finish. By putting all of those sequences in the same While, you have made it necessary to run all three of the lifts to the bottom before you can run any of them to the bottom again.

If your lifts are truly independent, put the code for each of them in its own While loop.
Reply With Quote