ROBOTC.net forums
http://www.robotc.net/forums/

Line Tracking/What next?
http://www.robotc.net/forums/viewtopic.php?f=55&t=5117
Page 1 of 1

Author:  smileforever [ Fri Nov 16, 2012 2:21 pm ]
Post subject:  Line Tracking/What next?

:arrow: help me so I know what to do after this! Thank you! :bigthumb:

Attachments:
obstacle.c [4.12 KiB]
Downloaded 385 times

Author:  JohnWatson [ Fri Nov 16, 2012 2:53 pm ]
Post subject:  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

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/