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 / 103
102  |  104
Subject: 
Rotation sensors?
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Fri, 4 Jun 1999 14:37:08 GMT
Viewed: 
1538 times
  
Has anyone used a rotation sensor with pbFORTH? I can't
seem to get it to work. My test script is attached.

Thanks,
Jonathan

-----
HEX

: isRunButtonPressed BUTTON_GET 1 AND 1 = ;

: showRotation
  3002 SWAP 3001 LCD_NUMBER
  LCD_REFRESH
;

: clear LCD_CLEAR LCD_REFRESH ;

: rotation
  RCX_INIT
  SENSOR_INIT
  BUTTON_INIT
  4 1 SENSOR_TYPE
  E0 1 SENSOR_MODE
  BEGIN
    BEGIN
      1 SENSOR_READ 0=
    UNTIL
    1 SENSOR_VALUE
    showRotation
    isRunButtonPressed
  UNTIL
  clear
;
-----



Message has 1 Reply:
  RE: Rotation sensors?
 
(...) Thanks for attaching the code Jonathan. Before I go through the steps of trying this out, what do you mean by doesn't work? ie. 1. Does it hang and not display anything? 2. Does it display the same data all the time? 3. Does it not respond to (...) (25 years ago, 4-Jun-99, to lugnet.robotics.rcx.pbforth)

5 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