To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.pbforthOpen lugnet.robotics.rcx.pbforth in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / pbFORTH / 42
41  |  43
Subject: 
Re: Ir transmission
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Mon, 10 May 1999 10:06:56 GMT
Reply-To: 
robots@jpsc.co.ukNOMORESPAM
Viewed: 
1753 times
  
while
EMIT sends out an arbitrary byte.

I can't get EMIT to work, in NQC I do this:

    SendMessage(255);                               // Flash
    Sleep(3);
    ThisRaw = RAW_LIGHT;

and the raw light sensor reading has big spikes for IR reflections.

but:

      [ HEX ] FF EMIT
      30 msWait
      RawLight LIGHT?

does not, I think that EMIT may be a blocking call and SendMessage
not, I will investigate the code.
--
John Cooper, Wallington, UK



Message is in Reply To:
  RE: Ir transmission
 
(...) YES!!! The standard FORTH word U. prints an insigned integer, while EMIT sends out an arbitrary byte. So, for a simple IR proximity detector, you would write something like: HEX 0 SENSOR_ACTIVE (labelled sensor #1) 3 1 SENSOR_TYPE (light (...) (25 years ago, 30-Mar-99, to lugnet.robotics.rcx.pbforth)

9 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