View Single Post
  #2   Spotlight this post!  
Unread 23-06-2008, 22:11
usbcd36's Avatar
usbcd36 usbcd36 is offline
Registered User
AKA: "DOS"
FRC #2399 (The Fighting Unicorns)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Solon, OH
Posts: 151
usbcd36 is a jewel in the roughusbcd36 is a jewel in the roughusbcd36 is a jewel in the rough
Re: Help With Line Follower

The first step in programming anything is figuring out exactly what you want the program to do. Yes, you want to make a robot follow a line, but how will it do that? What kind of sensors does it have?

If you have one sensor that can detect when you are on the line and when you are off of it, the simplest (but not very efficient) method of following the line is to have the robot turn one way until the sensor leaves the line, then have it turn the other way until the sensor detects the line again. There are better ways to do this, however.

Once you figure out what you want to do, then you can start writing code.