 | | Re: Rotation Sensor Values
|
|
Hee, Hee. It was 0.2.3, not 0.2.4. Here is the code snippet that setup and read the values. The current(working) code takes out the refresh, and changes the delay to msleep. ds_active(&SENSOR_2); ds_rotation_on(&SENSOR_2); (...) (26 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: Persistent globals
|
|
(...) Do you think that is possible to change the behavier of legOS loading to obtain the expected behavier for static data without the trick? Bye, Paolo. --- "Do not follow where the path my lead Go instead where there is no path and leave a (...) (26 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: light sensor problem?
|
|
(...) That should be great! :-) (...) use (...) Absolutely True!!!! :-) (...) I'm quite sure that you can do it!!!! :-) And this should be a real step forward!!!! What a beautiful thing to have some time to spend in this section of code... :-) I'm (...) (26 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: light sensor problem?
|
|
(...) Let me think about how to uncouple this from sys_time, so the code can get higher resolutions. (...) Yes, but even if all active sensors are turned of we are running with a lot of CPU power due to the high sampling speed. If you lower the (...) (26 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: slightly OT, but what the hey
|
|
(...) <snip> A distinction should be made between a robot that actually eats, and a robot that is simply powered on an organic battery or fuel cell. Eating is not just the conversion of food to energy; it denotes a behavior which involves seeking (...) (26 years ago, 24-Jul-00, to lugnet.robotics)
|
| |
 | | Re: Rotation Sensor Values
|
|
(...) That's a good question. Is this the latest tarball? If so, there have been some modifications to the refresh loop, and this may indicate a bug in them. In other words, it could be the double sets of lcd_refresh() and not the actual reading (...) (26 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: Rotation Sensor Values
|
|
I added back in the display code, and left out the lcd_refreshes. Then I got a proper counter. I wonder why the refresh was throwing the reading off. Thanks for all your help, Andy (...) (26 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
|
| |
 | | RE: light sensor problem?
|
|
(...) I've used the OC1B interrupt for my servo driver code in pbForth. You could use the OC1B to set the settle time for each reading, and then actually read the results when the interrupt expires. Having a structure to tell you which A/D to read (...) (26 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: slightly OT, but what the hey
|
|
everybody poops "Harri 'Junkarn' Manni" <lego-robotics@crynwr.com> wrote in message news:Pine.LNX.4.10.1...vika.se... (...) of (...) the (...) (26 years ago, 24-Jul-00, to lugnet.robotics)
|
| |
 | | Re: light sensor problem?
|
|
(...) :-) It is not the best implementation I've seen... :-) (...) Yes. I hate the delay loop but we I can't imagine how to do it better if we still need maximum speed in reading values from sensors. The routine also change his sampling speed if we (...) (26 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
|