Subject:
|
Re: Ir transmission
|
Newsgroups:
|
lugnet.robotics.rcx.pbforth
|
Date:
|
Mon, 10 May 1999 10:06:56 GMT
|
Reply-To:
|
ROBOTS@JPSC.CO.antispamUK
|
Viewed:
|
1864 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 (...) (26 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
|
|
|
|