Subject:
|
Re: Light sensor initialization?
|
Newsgroups:
|
lugnet.robotics.rcx
|
Date:
|
Thu, 15 Jul 1999 20:05:57 GMT
|
Viewed:
|
2108 times
|
| |
| |
In lugnet.robotics.rcx, Jonathan Knudsen writes:
> [...] I take a somewhat more conservative approach, taking 10
> readings over one second and averaging them to get
> a baseline value. This is done once at initialization.
> I then detect a dark line by testing for a
> reading that is 3 below the baseline.
> [...]
>
> There's really only one drawback: you have to assume that
> your robot is over a white part of the driving surface
> when the program runs. If it's over a black line, your
> calibration will be all screwed up.
That's why I suggested a solution that works in all cases. It's not much harder
than your solution either. http://www.lugnet.com/robotics/rcx/?n=38
- Robert Munafo
|
|
Message has 1 Reply:
Message is in Reply To:
| | Re: Light sensor initialization?
|
| Matthew's program takes one reading at initialization time to determine a baseline value. Any reading that falls 7 units below this is assumed to be a dark line. I take a somewhat more conservative approach, taking 10 readings over one second and (...) (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
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|