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 / 23
22  |  24
Subject: 
SENSOR_READ doesn't return 0
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Mon, 12 Apr 1999 23:17:15 GMT
Reply-To: 
robots@jpsc.co.uk+saynotospam+
Viewed: 
1617 times
  
I have been experimenting with the latest version of pbFORTH (102)

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

ok


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

: 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 ?

--
John Cooper, Wallington, UK



Message has 1 Reply:
  RE: SENSOR_READ doesn't return 0
 
(...) 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. (...) That's a good sign, at least. (...) You have obviously had (...) (26 years ago, 13-Apr-99, to lugnet.robotics.rcx.pbforth)

10 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