View Single Post
  #12   Spotlight this post!  
Unread 11-04-2014, 12:15
Spacemonkey619 Spacemonkey619 is offline
Registered User
None #4899
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: California
Posts: 7
Spacemonkey619 is an unknown quantity at this point
Re: How to loop peices of code forever?

Hey Kevin that Code almost works, It line follows back and fourth forever like its supposed to and stops when i press the button a second time. The only problem is that the arm keeps moving forever while its line tracking and the arm gets stuck because it never stops its first task. I'm trying to explain it right, the arm commands are supposed to stop once their done running for the time its given then switch to line following forward then move the arm a little you know to pick up the little box then switch to line following backwards.

I tried putting the commands inside where the line follower is because I thought since the line follower is working then the arm will too but the arm never stopped moving.
__________________
1st place NXT CA Regional Mini Urban Challenge 2013
1st place NXT National Mini Urban Challenge 2013
1st place NXT CA Regional Mini Urban Challenge 2014