Subject:
|
Re: Light sensor initialization?
|
Newsgroups:
|
lugnet.robotics.rcx
|
Date:
|
Thu, 15 Jul 1999 20:57:55 GMT
|
Reply-To:
|
mattdm@mattdm{Spamless}.org
|
Viewed:
|
2392 times
|
| |
| |
Robert Munafo <munafo@gcctech.com> wrote:
> Huh? You mean, your robot doesn't work unless you point it in a certain
> direction before starting the program? That doesn't sound too robust.
Partly, I can think of cases where that might be ugly. But more importantly,
I often want to set up a scenario so that two robots will bump into each
other in a certain place. (For making movies, showing off to friends, etc.)
Can't do that as easily if the robot doesn't go in the direction its
pointed.
> (this is for a line tracker that follows "dark" lines and relies on its
> orientation at startup)
That's part of the disagreement - there's a lot of other cases where one
might want to calibrate the sensor. My program, for example, stays in a
light area and "bounces" when it hits a dark line "wall".
> 2. Start moving forwards. Take some light readings.
> 3. As soon as the reading has changed a "significant" amount (a constant that
> depends on whether you're reading in raw mode or light-sensor mode) look and
> see what direction it has changed in. [snip]
> How's that? That will adapt to the ambient light level and differences in
> surface darkness and doesn't do any initial turning.
Yes, much better. :)
Might get confused if someone picks the robot up before it hits a line, but
people shouldn't be doing that anyway. :)
--
Matthew Miller ---> mattdm@mattdm.org
Quotes 'R' Us ---> http://quotes-r-us.org/
|
|
Message is in Reply To:
| | Re: Light sensor initialization?
|
| (...) Huh? You mean, your robot doesn't work unless you point it in a certain direction before starting the program? That doesn't sound too robust. Okay, let's change the algorithm: (this is for a line tracker that follows "dark" lines and relies on (...) (25 years ago, 15-Jul-99, to lugnet.robotics.rcx)
|
10 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|