Subject:
|
FW: SENSOR_READ doesn't return 0
|
Newsgroups:
|
lugnet.robotics.rcx.pbforth
|
Date:
|
Tue, 11 May 1999 16:37:01 GMT
|
Viewed:
|
1537 times
|
| |
| |
-----Original Message-----
From: Ralph Hempel [mailto:rhempel@bmts.com]
Sent: Monday, April 12, 1999 8:57 PM
To: robots@jpsc.co.uk
Subject: RE: SENSOR_READ doesn't return 0
> I have been experimenting with the latest version of pbFORTH (102)
AhA! Another victim within my clutches!!!!! Glad to hear you are trying
things out, John. The more questions I get, the sooner I can get a FAQ
out to help with the common ones.
> Which announces itself thus:
>
> hhii
>
>
> hForth H8/300 for RCX RAM Model V1.0.0 by Ralph Hempel, 1998
>
> All noncommercial and commercial uses are granted.
>
> Please send comments, bug reports and suggestions to:
>
> rhempel@bmts.com
That's a good sign, at least.
> I cannot get the LIGHT? word (tracker.txt) to work, it seems never to
> return 0, usually 200 or 300 (hex). I am initialising using:
>
> 1 CONSTANT RawLight
> 1 CONSTANT RunButton
> 3 CONSTANT MotorStop
You have obviously had some FORTH experience, I'll have to admit I haven't
fully tested the CONSTANT word...
> : BOT_INIT
>
> ." BOT_INIT" CR \
>
> RCX_INIT
> POWER_INIT
> BUTTON_INIT
> SENSOR_INIT
>
> RawLight SENSOR_ACTIVE
> 3 RawLight SENSOR_TYPE ( Light )
> 0 RawLight SENSOR_MODE ( Raw )
>
> ;
>
> What is the significance of a non-zero return by SENSOR_READ ?
This LOOKS ok, the non-zero return generally indicates BUSY, or not ready.
First off, does the script as presented work? In other words, does TRACKER.TXT
work on your RCX? If so, then I'd be looking at the CONSTANT word and making
sure it works properly too.
Please email me again if you have problems, and give me as much feedback as
you can, good or bad...
Cheers,
Ralph Hempel - P.Eng
--------------------------------------------------------
Check out pbFORTH for LEGO Mindstorms at:
<http://www.bmts.com/~rhempel/lego/pbFORTH/default.html>
--------------------------------------------------------
Reply to: rhempel at bmts dot com
------------------------------------------------------
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|