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

Where is the best place to put line tracking sensors.
http://robotc.net/forums/viewtopic.php?f=11&t=4514
Page 1 of 1

Author:  themigthy [ Wed May 09, 2012 11:10 am ]
Post subject:  Where is the best place to put line tracking sensors.

I am currently working on using line trackers so far i have done a good job. But i still cant figure out how to make my robot turn when it confronts a corner, i am thinking of placing the in the middle but i font know if that will change anything, or should use encoders to make turning on sharp corners better,0

Author:  magicode [ Wed May 09, 2012 11:36 am ]
Post subject:  Re: Where is the best place to put line tracking sensors.

In my experience, a triangle configuration has worked well.
Code:
    |_|
|_|     |_|

Author:  jbflot [ Fri May 11, 2012 9:15 am ]
Post subject:  Re: Where is the best place to put line tracking sensors.

For detecting things like corners, you basically want to start checking the status of all three sensors. If you're using three sensors, this gives you 8 unique conditions to check for. For example, if you're looking at a right corner, like this:

_
|
^

You would want an if statement like

Code:
if(right sensor sees dark && center sensor sees dark && left sensor sees dark)
{
turn right
}

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