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 / 420
419  |  421
Subject: 
Confusion regarding the POWER_OFF command.
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Thu, 25 Jan 2001 04:23:42 GMT
Reply-To: 
klpauba@^StopSpammers^home.com
Viewed: 
1448 times
  
I'm a little confused with the POWER_OFF word.

From reading the documentation, I would have though the following would
work:

POWER_INIT

: test  BEGIN DO-WORK POWER_OFF 0 UNTIL ;

When 'test' is executed, both 'DO-WORK' and 'POWER_OFF' are executed,
but I can't get the loop to iterate once again by pressing the
"On/Off" key.  I would like some way to power down the operation of a
robot to save battery power.

Any idea what I'm doing wrong?



Message has 1 Reply:
  RE: Confusion regarding the POWER_OFF command.
 
(...) I was too. It's a bit goofy, so I'll try to explain as I go... (...) That's fine - the only thning you need to do (I think - I'm away from my RCX) is to put POWER_INIT just before POWER_OFF. The POWER_INIT word initializes the interrupt (...) (24 years ago, 25-Jan-01, to lugnet.robotics.rcx.pbforth)

2 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