To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 43
42  |  44
Subject: 
Re: Light sensor initialization?
Newsgroups: 
lugnet.robotics.rcx
Date: 
Thu, 15 Jul 1999 20:05:57 GMT
Viewed: 
1831 times
  
In lugnet.robotics.rcx, Jonathan Knudsen writes:
[...] I take a somewhat more conservative approach, taking 10
readings over one second and averaging them to get
a baseline value. This is done once at initialization.
I then detect a dark line by testing for a
reading that is 3 below the baseline.
[...]

There's really only one drawback: you have to assume that
your robot is over a white part of the driving surface
when the program runs. If it's over a black line, your
calibration will be all screwed up.

That's why I suggested a solution that works in all cases. It's not much harder
than your solution either.  http://www.lugnet.com/robotics/rcx/?n=38

- Robert Munafo



Message has 1 Reply:
  Re: Light sensor initialization?
 
(...) going in a circle. (25 years ago, 15-Jul-99, to lugnet.robotics.rcx)

Message is in Reply To:
  Re: Light sensor initialization?
 
Matthew's program takes one reading at initialization time to determine a baseline value. Any reading that falls 7 units below this is assumed to be a dark line. I take a somewhat more conservative approach, taking 10 readings over one second and (...) (25 years ago, 15-Jul-99, to lugnet.robotics.rcx)

10 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR