Subject:
|
Re: rotation sensor problem (different one this time)
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Thu, 27 Jul 2000 10:54:06 GMT
|
Viewed:
|
1558 times
|
| |
| |
> 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.)
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 to
confirm that you can loose IRQ signals and to diagnose problem, but we can
investigate...
Do you work with a lot of signals? You could try to call directly the
ds_handler() function when all sensors stops to see if everything restart...
> 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...
Some test code need to be write to catch the bug, but we are in process to
change the whole sensor sampling process...
Bye,
Paolo.
---
"...he said,'Ooh eeh,ooh ahh ahh,ting tang,whallawhalla bing bang...'"
|
|
Message has 1 Reply:
Message is in Reply To:
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
|
|
|
|