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 / 85
84  |  86
Subject: 
RE: Multitasker test script
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Thu, 13 May 1999 02:27:37 GMT
Viewed: 
1579 times
  
John,

I tried to put this part of the code into my test script without the ping
word and it worked fine. Yes, I uncommented the line that does not work for you.

I'm going to have a closer look at ping...I wonder if it's running out of stack or
doing other generally wierd things...

:NONAME ProximityDriver ACTIVATE
  STOP
  BEGIN
    PAUSE
    ping
\ [ HEX ] RCX_POWER 4000 POWER_GET RCX_POWER @ 0= IF STOP THEN  \ this STOP is broke
  AGAIN
; EXECUTE

I also checked into EMIT - it's only blocking because of the stupid IR tower. I have
to be sure that it echoes back the character I just sent, so I don't get confused
between a character I'm expecting (from the tower) or one that I'm not (from the user)

Maybe it's time for a word that unconditionally bangs things out the IR port?

This IS more fun!

Cheers,

Ralph Hempel - P.Eng

--------------------------------------------------------
Check out pbFORTH for LEGO Mindstorms at:
<http://www.bmts.com/~rhempel/lego/pbFORTH/default.html>
--------------------------------------------------------
Reply to:      rhempel at bmts dot com
------------------------------------------------------



Message has 1 Reply:
  Re: Multitasker test script
 
(...) It was this line that trashed the task chain when the power button was pressed, I thought I'd checked it a few times but perhaps it was something else. (...) Yes. What I really want is an equivalent of SendMessage in NQC (which maps to opcode (...) (26 years ago, 13-May-99, to lugnet.robotics.rcx.pbforth)

Message is in Reply To:
  Re: Multitasker test script
 
Here it is, it is working, but is waiting for IR_MODE_HI, STOP and a non-blocking EMIT. There is a light sensor on the centre connector pad. .dp displays proximity in the LCD as DEFCON.RawLight alternating with the average ambient raw light sensor (...) (26 years ago, 12-May-99, to lugnet.robotics.rcx.pbforth)

9 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