View Single Post
  #2   Spotlight this post!  
Unread 09-10-2006, 22:15
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,506
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Tracking Lines In Hangin' Around

Quote:
Originally Posted by Insomniacsloth
Can I use the line sensor kit to track the white lines on a grey background that are on the floor of the Hangin' Around field. If so, how much programming is necessary?
Those sensors return a value of 0-255 depending on the reflection it is getting. With those sensors one end will be full reflection (that'll be the end the white tape is near) and the other will be no reflection (the end the grey will be close to there). From these values you can tell whether the sensor is over the white part, or the grey part. I can't tell you the specific values for these, you have to plug it in and test it.

From there you tell it to drive the motors the way you want based on where you are. (I won't spoil this part for you).

If you know C, this shouldn't be difficuly in MpLab.

If you don't, It would be best to use EasyC.
Reply With Quote