Society of Robots - Robot Forum

Software => Software => Topic started by: canatan on June 02, 2009, 12:28:43 PM

Title: line tracking.. off the line .. sensor programming issues
Post by: canatan on June 02, 2009, 12:28:43 PM
we're making a line tracking robot that runs off the line but along it...
so there was one sensor protruding from the front left corner..
and then our seniors asked us to put one in the back left corner and one in the middle next to the wheels for detecting junctions..
anyhoo each sensor set has 4 sensors 2 that are are on the corners of the line and 2 right outside .. all 4 sensors are in a str horizontal line..
what i dont get is how do i use the sensor in the middle for turning??
Title: Re: line tracking.. off the line .. sensor programming issues
Post by: SmAsH on June 02, 2009, 02:44:51 PM
well, if you ae turning it will try to keep the center of the robot over the line so it doesn't stray away.
Title: Re: line tracking.. off the line .. sensor programming issues
Post by: canatan on June 02, 2009, 07:25:53 PM
so i can combine the front and back sensors into one int and check with the middle ones?
Title: Re: line tracking.. off the line .. sensor programming issues
Post by: SmAsH on June 03, 2009, 12:40:01 AM
make the robot turn the direction of the line but make sure the middle keeps reading that the line is there.