Subject:
|
rotation sensor problem (different one this time)
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Thu, 27 Jul 2000 06:30:48 GMT
|
Viewed:
|
1838 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:
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|