To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.scoutOpen lugnet.robotics.scout in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Scout / 162
161  |  163
Subject: 
Re: legOS
Newsgroups: 
lugnet.robotics.scout
Date: 
Fri, 16 Feb 2001 00:38:57 GMT
Viewed: 
3114 times
  
In article <G8srM9.5uo@lugnet.com>, "Alex" <neo@fortworks.com> wrote:


How would you use the built in light sensor like this?
"SetSensor(SENSOR_3,SENSOR_LIGHT);" or somting like that?
Oh and can you use the temprature sensor on the scout?


SetSensor() doesn't work at all on the Scout.  By definition, SENSOR_3
is the light sensor and configured in a somewhat unusual mode (it reads
0, 1, or 2).

Its been a long time since I've worked on the Scout.  I think you set
the light thresholds and then the 0/1/2 values represent normal, dark,
or light ranges.  Look in the NQC Programmer's Guide in the section for
Scout specific features for the exact calls.  When in doubt you can also
generate the API file NQC uses...

nqc -api

And browse the function and constant definitions directly.

Dave

--
reply to: dbaum at enteract dot com



Message is in Reply To:
  Re: legOS
 
(...) How would you use the built in light sensor like this? "SetSensor(SENSOR_3,...R_LIGHT);" or somting like that? Oh and can you use the temprature sensor on the scout? Alex (24 years ago, 15-Feb-01, to lugnet.robotics.scout)

15 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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