|
In article <3998A849.7008899D@yahoo.com>, Zhengrong Zang
<legozang@yahoo.com> wrote:
> Hi
> I have a light-seeker NQC program for RCX, I want to port for Scout,
> does anyone know how to do it? Then does Scout use external light
> sensor?
>
> BR
> Zhengrong
The Scout only supports passive sensors externally (touch and
temperature). The light sensor is supposed to be used as an active
sensor (although in some cases you can use it passively and get
reasonable results).
The Scout does have its own built-in light sensor. It is not a
reflective sensor (like the external RCX light sensor), but just reads
ambient light levels which rules out some applications. Its position on
the Scout can also make it a bit of a challenge to use effectively.
Internally, the Scout preprocesses the light sensor reading into one of
three states: dark, normal, or light (values 0, 1, and 2). You can
programmatically change the thresholds and hysteresis used in converting
raw values into these three levels. In many cases this is the best way
to use the sensor since it also allows you to take advantage of the
event monitoring capability of the Scout.
Another option is to read the raw values rather than the processed
values. This will give your program greater resolution. All of the NQC
calls to do these things are described in the NQC 2.2 documentation (see
http://www.enteract.com/~dbaum/nqc/beta/index.html). You may also want
to grab the Scout SDK from www.legomindstorms.com because it contains an
excellent document on the inner workings of the Scout.
Dave
--
reply to: dbaum at enteract dot com
|
|
Message has 1 Reply:
Message is in Reply To:
4 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
|
|
|
|