View Single Post
  #5   Spotlight this post!  
Unread 12-02-2004, 11:41
LBK Rules's Avatar
LBK Rules LBK Rules is offline
1467 '06 Alumni
AKA: Anthony Rinaldi
no team (HSRO)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Henrico, VA
Posts: 438
LBK Rules will become famous soon enoughLBK Rules will become famous soon enough
Re: Line-Tracking sensors

This might be a dumb question, but how would you write the line following code using two banners, and how would you place them on the robot.

We have tried to write our own code, but it wouldn't work. (I don't have it on this computer.)

Also do you have to connect one sensor to two inputs, or can it work with just one?

EDIT:

I think the code went something like this:
PHP Code:
if (digi_in01 == 1)
{
    
pwm01 130
}
else
{
    
pwm01 124
}

if (
digi_in02 == 1)
{
    
pwm02 130
}
else
{
    
pwm02 124

__________________
Anthony Rinaldi
Team 1132: 2003
Team 1467: 2004 - 2006

Last edited by LBK Rules : 12-02-2004 at 11:51.