Re: Line Tracking/What next?
What is the robot doing, and how is it different from what you want it to do? Run through each line of code step-by-step and 'map' it to an action you want the robot to perform. After the line tracking, what do you want the robot to do? Specifically for this program, when are you telling the robot to stop line tracking?
The first thing I would focus on is making sure the robot stops line tracking when you want it to; as a hint, this is generally done by either line tracking until a certain amount of encoder counts are met or by line tracking until a certain time is reached. Either way, the condition of the 'while (1 == 1)' will more than likely need to be changed.
I would suggest taking a look through our video trainer curriculum to review loops and conditions: http://www.education.rec.ri.cmu.edu/pre ... index.html
Check out our Blog
! And our Facebook page
Need help? Take a look at our updated help documentation
and the ROBOTC Forums.