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 / 201
200  |  202
Subject: 
Re: Rom sensor read routine
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sun, 2 May 1999 12:07:15 GMT
Viewed: 
1216 times
  
Hi Kekoa,

Kekoa Proudfoot wrote:
The rotation code is pretty simple: the expected state machine, with split
points between the four states of 1bf, 2bf, 3bf:

   000 <= STATE0 < 1bf
   1bf <= STATE1 < 2bf
   2bf <= STATE2 < 3bf
   3bf <= STATE3 < 3ff

I am fixing this right now.

In my case, since I scan all 4 a/d inputs at once, the one that really
matters is the first one, a/d input a, which corresponds to sensor 2.
Without the delay, I get raw 10-bit values for sensor 2 that are off by a
wildly varying 50-100 units compared to sensors 0 and 1.  With the delay,

The current legOS sensor read cycle is this (i=illuminate, c=A/D
conversion)

S1: iii iii iii ccc
S2: ccc iii iii iii
S3: iii ccc iii iii
S4: iii iii ccc iii

If you find your sensor 2 readings to be still accurate, maybe a better
cycle would look like this:

S1: iii iii --- ccc
S2: ccc iii iii ---
S3: --- ccc iii iii
S4: iii --- ccc iii

--
Markus L. Noga noga@inrialpes.fr
Check out legOS! http://www.multimania.com/legos/
"Quand on n'a pas de caractere, il faut bien se donner une methode."
-Camus on Software Engineering



Message has 1 Reply:
  Re: Rom sensor read routine
 
(...) The current LegOS model really hammers the sensors, almost to the point of oversampling them. It only takes a short while (less than 0.1 ms, I think) to sample all four sensors; I think LegOS samples the next sensor immediately after finishing (...) (26 years ago, 13-May-99, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Rom sensor read routine
 
In writing some sensor code yesterday/today (it's 6 am), I passed over the ROM sensor code at 14c0. The documentation has been put in the usual place. The rotation code is pretty simple: the expected state machine, with split points between the four (...) (26 years ago, 25-Apr-99, to lugnet.robotics.rcx.legos)

3 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