|
-----Original Message-----
From: John Cooper [mailto:robots@jpsc.co.uk]
Sent: Thursday, May 06, 1999 10:07 AM
To: Ralph Hempel
Subject: Re: New pbFORTH
> Yes, the MARKER and the tasker are incompatible, since the task
> chain is independent of the MARKER. I guess the thing to do is to
> restore the task chain to the default value, killing all the tasks,
> and THEN using the MARKER defined word to get you back to square one.
Well, I'm not in a position that I really need MARKER with the multitasking
testing, just a quicker way of reloading pbFORTH. When I lose it, I really lose
it.
> Yes, the SOUND words will make their way back in. Sorry about breaking
> the old code
Have you changed the definition of SENSOR_READ? I should have kept the old code
to compare it with.
> > 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
> > ;
>
> Are you putting msWait (or the definition that calls it) into a :NONAME
> task like in the tasker example. Just running msWAIT interactively will
> not put anything in the task list and PAUSE will just go away into the
> ether...
I am calling it from a task word, my problem is that it is an IR proximity
detector, so my debugging is hampered by the character being regularly EMITted
to look for the flash. I've slowed it down a lot now which helps. I think I
should have started with something simpler.
> Thanks for being a patient guinea pig...(is that a common term in the UK?)
Oh, yes it is. I have beta tested many products and know the drill.
Are <# # #> TYPE working properly? I seem to be getting some strangeness.
--
John Cooper, Wallington, UK
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|