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 / 52
51  |  53
Subject: 
FW: New pbFORTH
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Tue, 11 May 1999 16:36:15 GMT
Viewed: 
1387 times
  
-----Original Message-----
From: John Cooper [mailto:robots@jpsc.co.uk]
Sent: Thursday, May 06, 1999 5:07 AM
To: Ralph Hempel
Subject: Re: New pbFORTH


MARKER seems to work, but I haven't tested it much as my debug runs more
often end up in a lockup, and I don't think I can use it at all with
multitasking words.

My old code has stopped working as SENSOR_READ is now only returning 1
You've (temporarily?) removed the SOUND.. words

I think I'm having a few problems with GET_timer and PAUSE, my idea is to
have my low level delay routine relinquish control whilst waiting. My
current efforts seem to go off to nevernever land:

: delay ( 10ms timer -- )
  SWAP OVER timer_SET
  BEGIN
    PAUSE    \ let someone else have a go
    DUP timer_GET 0=
  UNTIL
  DROP
;

: msWait ( ms -- )
  10 /      \ convert to 10ms units
  0 delay   \ use timer 0
;

--
John Cooper, Wallington, UK



1 Message 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