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 / 1297
1296  |  1298
Subject: 
Re: rotation sensor problem (different one this time)
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 27 Jul 2000 10:54:06 GMT
Viewed: 
1399 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:
  Re: rotation sensor problem (different one this time)
 
(...) Nope, just rotation. Well, I can't be sure, since there are no other sensors, but since it is not permanent (i.e., I can still force it to register, just at the wrong times) I doubt I have lost the IRQ. (...) No signals at all. I'll try it (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  rotation sensor problem (different one this time)
 
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. (...) (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

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