To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 700
699  |  701
Subject: 
Re: About Scout programming
Newsgroups: 
lugnet.robotics.rcx.nqc, lugnet.robotics.scout
Date: 
Tue, 15 Aug 2000 05:49:39 GMT
Viewed: 
3558 times
  
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:
  Scout programming in RcxCC
 
After follow Dave's suggestion, I am successful to use RcxCC for Scout programming, here is the method. Edit two batch files named rcx.bat and scout.bat in rcxcc directory, the content of files are as follows: set NQC_OPTIONS=-TRCX rcxcc set (...) (24 years ago, 17-Aug-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout, lugnet.robotics.rcx)

Message is in Reply To:
  About Scout programming
 
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 (24 years ago, 15-Aug-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)

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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR