To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3683
3682  |  3684
Subject: 
Spurious bad readings from sensors
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 25 Feb 2004 17:00:59 GMT
Viewed: 
4637 times
  
Hi,

  I instrumented Steve Hassenplug's legway code so that after it falls over it
can dump sensor data and motor control valiables out to a PC.

  One of the things I noticed in this process is that aperiodically, the sensor
inputs give a sensor reading that is way off from the preceding or following
readings.  The values of these readings are typically 127 or 128 (when reading
LIGHT_1 for example).  I've using only one EOPD sensor and two other sensors
that are read as LIGHT_2, and LIGHT_3.  These two sensor inputs also give the
spurious sensor readings.

  The spurious readings do not happen at regular intervals.

  Is this a known issue with brickOS?

Kevin



Message has 1 Reply:
  Re: Spurious bad readings from sensors
 
(...) Because of the way BrickOS uses interrupts to handle active sensors, it's possible for sensors to be deprived of power for 300us or more, though typically the interval is only 30us or so. This is due to long interrupt latencies in BrickOS that (...) (21 years ago, 25-Feb-04, to lugnet.robotics.rcx.legos)

4 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