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 / 1295
1294  |  1296
Subject: 
rotation sensor problem (different one this time)
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 27 Jul 2000 06:30:48 GMT
Viewed: 
1677 times
  
This occurs very irregularly, so I'm not sure what the problem could be,
but it is a whopper. After a certain amount of time running my program,
(or perhaps after certain inputs-I'm not sure) it would appear that
ROTATION_X stops being updated. Regardless of how I move the sensor
itself, the thing just stops changing- every time I query, I get the same
result back.

There is a /lot/ of code involved, so I won't post it all, but suffice to
say that the sensor is sampled, moves, stops, is sampled again, and then
several seconds worth of floating point calculations are done before the
loop is repeated. (Some printing to the LCD is done at various points here
as well.) At some point in one of those loops, the sensor stops responding
to new inputs. Turning the robot off and then on again, or just restarting
the program, seems to fix the problem just fine. I've also occasionally
noticed that it seems to be dropping counts (which was a problem solved a
long, long time ago.)

Does anyone have any idea what could "interrupt" the sensor, or cause it
to stop responding? This didn't seem to be happening just a week ago
(though it is possible that I might have missed it then) so I fear that it
is related to our new patches...

Anyway, I'm going to delve back into the code and see what I find...
Luis

-----------------------------------------------------------------------

    "Summertime... and the living is easy...
    fish are jumping and the cotton is high...
    So hush, little baby, baby don't you cry."
-Ella

-----------------------------------------------------------------------



Message has 1 Reply:
  Re: rotation sensor problem (different one this time)
 
(...) All sensors stops responding? I think that you have lost, for some reasons, the ADC sampling IRQ... If you loose this one you have lost the kick to continue sampling... Some part of code inside legOS disable IRQs... I'm not enough expert in H8 (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)

3 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