View Single Post
  #11   Spotlight this post!  
Unread 13-11-2006, 18:26
intellec7's Avatar
intellec7 intellec7 is offline
108 programmer
AKA: Gustavo
FRC #0108 (SigmaC@ts)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2006
Location: Hollywood, Florida
Posts: 65
intellec7 is on a distinguished road
Send a message via AIM to intellec7 Send a message via MSN to intellec7
Re: Line Following with PID

I am not sure if this could work, but what if the PID input were time? If the slope of the robot in relation to the line is small, it will take longer for an error to occur. (one of the line detectors to detect the line). If the difference in slope is great, then an error will occur more quickly.
Perhaps pseudo code would be something like

:Beginning
Begin Timer
While line not detected
Go forward
Stop Timer
correction = PID(timer,sensor)
GOTO Beginning

Just a thought.

Last edited by intellec7 : 13-11-2006 at 18:29.