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 / 35
34  |  36
Subject: 
Re: SENSOR_READ doesn't return 0
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Thu, 15 Apr 1999 23:16:25 GMT
Reply-To: 
robots@jpsc.#saynotospam#co.uk
Viewed: 
1709 times
  
Actually, whils I am re-coding things, is there any reason why you
didn't do DELAY like this?

: DELAY ( 100msec timer -- )
  0 OVER TIMER_SET SWAP          ( timer ticks )
  BEGIN
    OVER TIMER_GET OVER >        ( timer ticks time>ticks )
  UNTIL
  2DROP
;

I have produced an interim millisecond timer:

: Sleep ( msec -- )
  0 DO
    [ DECIMAL ] 143 0 DO LOOP \ calibrated
  LOOP
;

--
John Cooper, Wallington, UK



Message has 1 Reply:
  RE: SENSOR_READ doesn't return 0
 
(...) There are indeed many ways to skin a cat...in the end , the effect is the same, but I'm always curious to see how others do things. How many FORTH programmers does it take to screw in a light bulb? Just one, but he has to be the fellow that (...) (25 years ago, 16-Apr-99, to lugnet.robotics.rcx.pbforth)

Message is in Reply To:
  RE: SENSOR_READ doesn't return 0
 
(...) John, Thanks a lot for this catch. Sounds a lot like the email I exchanged with Kekoa regarding power down mode and external stacks, but that's another story... Cheers, Ralph Hempel - P.Eng ---...--- Check out pbFORTH for LEGO Mindstorms at: (...) (25 years ago, 15-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

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