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 / 42
41  |  43
Subject: 
Re: Light sensor initialization?
Newsgroups: 
lugnet.robotics.rcx
Date: 
Thu, 15 Jul 1999 14:59:58 GMT
Reply-To: 
mattdm@mattdm(Spamcake).org
Viewed: 
1920 times
  
Jonathan Knudsen <jonathan@oreilly.com> wrote:
2. Different light sensors produce different readings for the same amount
  of light. Doing a runtime calibration increases the chances that your
  program can work on someone else's robot.

This is my inspiration for adding on-the-fly init code, btw. RoboTag uses
two seperate robots, and it turns out that my friend -- the source of the
second mindstorms kit -- has a light sensor which reads about 10 "darker"
than mine.

--
Matthew Miller                      --->                  mattdm@mattdm.org
Quotes 'R' Us                       --->             http://quotes-r-us.org/



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
    

Custom Search

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