|
I'm a new legos user and I'm trying to get my first app working. The issue
appears to be that the light sensor value isn't getting updated as
frequently as I expected. When I slow down the motors my line tracking
program works fine. I speed it up and it misses the line.
A very similar problem written in NQC seems to have no issue at higher motor
speeds.
How often is the light sensor value updated? Is there anything I can do to
speed it up?
Thanks
|
|
Message has 4 Replies: | | RE: Light Sensor help
|
| Try replacing the batteries -----Original Message----- From: news-gateway@lugnet.com [mailto:news-gateway...ugnet.com] On Behalf Of Nathan Nesbit Sent: Sunday, April 07, 2002 8:25 PM To: lugnet.robotics.rcx....lugnet.com Subject: Light Sensor help (...) (23 years ago, 9-Apr-02, to lugnet.robotics.rcx.legos)
| | | Re: Light Sensor help
|
| The hardware can get a light sensor reading every 1 mS. Is the process that is reading the light sensor at a high enough priority? Kevin "Nathan Nesbit" <natenez@hotmail.com> wrote in message news:Gu7zno.41A@lugnet.com... (...) issue (...) motor (...) (23 years ago, 9-Apr-02, to lugnet.robotics.rcx.legos)
| | | Re: Light Sensor help
|
| Ive never had any problems with the light sensor reading fast enough, and I have a robot that runs pretty fast. How are you trying to follow the line? Maybe theres a problem with your conversion between NQC and LegOS. Id be glad to offer (...) (23 years ago, 9-Apr-02, to lugnet.robotics.rcx.legos)
| | | Re: Light Sensor help
|
| (...) I had a similar problem using RoboLab. I had a task that looped and checked the light sensor once in each loop. If the light sensor changed within the loop but NOT at the time when the check was made it would be missed. I replaced it with a (...) (23 years ago, 9-Apr-02, to lugnet.robotics.rcx.legos)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|