Go to Post If there's one bit of advice I can give, its never underestimate the power of a hurricane. - Joshua May [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2011, 10:17
Tds123's Avatar
Tds123 Tds123 is offline
There is no I in team =]
AKA: Timothy Shub
FRC #1396 (Pyrobots)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Tottenville High School
Posts: 27
Tds123 is an unknown quantity at this point
Send a message via AIM to Tds123
Line Sensor programming help

Can someone please give me an example of how the line sensors should work? How do i make the robot follow the refllectix tape using the line sensor .. I have it hooked up correctly because i programmed the dashboard to read when it has seen the refletix tap
__________________
ThE sCaLeS oF bAlAnCe (Team 1396)
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2011, 10:52
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Line Sensor programming help

The line on the carpet is not made of the expensive retroreflective material. It is 2-inch-wide gray gaffer's tape.

The easiest way to follow a line is to have two sensors not quite as far apart as the tape is wide. When neither sees the tape, turn right. When the right one sees the tape, go straight. When the left one sees the tape, turn left. If you want to detect the end-of-line mark, use a third sensor to the left of the others. When all three see the tape, stop. This will follow the left edge of the line. It should be obvious how to change it to follow the right edge if you want to.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2011, 16:38
Tds123's Avatar
Tds123 Tds123 is offline
There is no I in team =]
AKA: Timothy Shub
FRC #1396 (Pyrobots)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Tottenville High School
Posts: 27
Tds123 is an unknown quantity at this point
Send a message via AIM to Tds123
Re: Line Sensor programming help

i was actually kind of hoping for a little demo program on how to move the robot if the sensor sees the tap
__________________
ThE sCaLeS oF bAlAnCe (Team 1396)
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2011, 16:48
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Line Sensor programming help

there is a line following demo in the demo projects that come installed with the WindRiver Workbench
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:35.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi