View Single Post
  #3   Spotlight this post!  
Unread 11-05-2015, 10:09 AM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Re: Multiple Autonomous Actions

Quote:
Originally Posted by Alpha Beta View Post
It sounds like you want to lift the tote before you start moving backwards. You can link while loops together in sequence and put the code for lifting the tote in the first loop, and your drive backwards code in the 2nd loop. The first loop will not send information outside of its loop until it finishes, and the 2nd loop will not start until its inputs are filled. You could end the first loop on timing, number of loop iterations, or based on some robot feedback that lets you know the tote has been lifted.
I really like this method. We used it this last year with great results. The only problem i have with it and am not sure how to solve is if you stop the Auto in the middle the only way to reset the while loops is to reboot the code. Do you have a solution on how to fix this
__________________
2015 Midwest Regional Finalist
2015 Central Illinois Regional Winner
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote