View unanswered posts | View active topics It is currently Sun Oct 26, 2014 3:02 am






Reply to topic  [ 2 posts ] 
Line Tracking/What next? 
Author Message
Rookie

Joined: Fri Oct 19, 2012 1:19 pm
Posts: 4
Post 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 211 times
Fri Nov 16, 2012 2:21 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 596
Post 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 Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Fri Nov 16, 2012 2:53 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.