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

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 the pushbutton event to stop it?

The probable cause is that you have not specified it as an
active sensor (I think). Try 1 SENSOR_ACTIVE and see if that
helps.

Nice script, by the way. Are you still working on that Mindstorms
book?

Cheers,

Ralph Hempel - P.Eng

------------------------------------------------------
Outside of a dog, a book is a man's best friend.
Indside of a dog, it's too dark to read...
------------------------------------------------------
Reply to:      rhempel at bmts dot com
------------------------------------------------------



Message has 1 Reply:
  Re: Rotation sensors?
 
Hi Ralph, (...) Sorry for not being more specific. It shows the same value all the time. (...) Yup, you nailed it. I thought the rotation sensor was a passive resistive device. The call to SENSOR_ACTIVE fixed it up. (...) Thanks, I'm still getting (...) (25 years ago, 4-Jun-99, to lugnet.robotics.rcx.pbforth)

Message is in Reply To:
  Rotation sensors?
 
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 (...) (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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR