To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 936
935  |  937
Subject: 
Re: Just some really basic questions...
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Mon, 29 Jan 2001 17:07:02 GMT
Viewed: 
1989 times
  
Okay, cool, so I get 5 slots (my bad...I knew that too...I don't know *why*
I kept saying 3) and the TOTAL space I can use is 6k? Does that include the
datalog feature? Can you pass variables into other programs? How do you use
these 'Codes (1-255)'? I mean, not specifically how you use them, I mean,
how do you *use* them? What are some practical applications? Can a 'code'
signal a jump to another function? like code 7 jump here, code 43 jump here,
etc...

What's the difference between running 1 of the 5 programs and passing
between programs and simply putting the whole program in one slot and just
jumping between functions?

--
"...and all that road going, all the people dreaming in the immensity of
it...and tonight the stars'll be out, and don't you know God is Pooh
Bear?" -- Jack Kerouac, 'On the Road'
http://www.jeff-small.com/
"Dean Husby" <nntp@akasa.bc.ca> wrote in message
news:3A751998.61782356@akasa.bc.ca...
Krusty wrote:

Okay, I'm really new to the whole NQC thing and have visited Amazon and
ordered a couple books, but I've got some rather high level, I guess for
lack of a better term, questions...

I can store up to three program in my RCX.

5. You get five slots.

Correct? What's the best way to
maximize modularity in programming to get the most use out of the 3 • spaces?
Can you say, tell the program in slot 1 to run the program in slot 3 and
when done, return back to 1?

Yes, with Version 2 of the firmware.

Can you also write functions in Programs using
NQC that can further this ability? Say for instance you wanted to make
program 3 something like, 'responses' where if something was encountered • in
program 1 (slot 1) it could pass that off to another program (in say, • slot
3) just for responding to stuff? Passing variables to the other program • and
the like? I hope I'm using the right nomenclature here, I'm calling • 'slots'
the 3 places I store programs on the RCX, correct? There are, iirc, 3 of
them...

From what I understand you get 6k of program space, you can use it all in • a
program or spread it around 2 to 5. Your choice.


I'm merely asking because I'm way unfamiliar with this and I'm *just*
starting to get into it. I'm gonna go grab all the requisite • documentation,
but I just wondered a couple things before I get started...

Can one RCX activate a program (and specify it as well?) on ANOTHER RCX
brick sitting near enough to use the IR link? How fast is the connection
between them? Can you, for instance create a pack on your shoulder that
connected to an exoskeleton connected to your own arm and transfer • movement
to a similar arm on a table nearby and do it almost real-time?


Sort of. Computer to RCX control is quite fast for direct control. RCX to • RCX
is a little more complicated. Codes (1 to 255) are easy but more then that • is
harder.

Dean
--
Coin-Op's For Sale!: http://www.akasa.bc.ca/tfm/coin-op.html
Dean's Lego Workshop: http://www.akasa.bc.ca/tfm/lego_wr.html
Vancouver Lego Club: http://www.akasa.bc.ca/vlc





Message has 2 Replies:
  Re: Just some really basic questions...
 
(...) Yes. (...) Yes. (...) You send a code from RCX #1 to RCX #2, RCX #2 is awaiting code... Based on the code number, it can perform previously defined tasks (complex tasks too, if you like) (...) ... Don't know. More complications, I'd say. (24 years ago, 29-Jan-01, to lugnet.robotics.rcx.nqc)
  Re: Just some really basic questions...
 
(...) Yes. To be more precise I believe it's 6100 bytes of space. (The SCOUT has 400 bytes of space) (...) if message = 5 then jump off table... It's that easy... (...) Well if you can keep all the code in one program it's easier. But you get 32 (...) (24 years ago, 29-Jan-01, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  Re: Just some really basic questions...
 
(...) 5. You get five slots. (...) Yes, with Version 2 of the firmware. (...) From what I understand you get 6k of program space, you can use it all in a program or spread it around 2 to 5. Your choice. (...) Sort of. Computer to RCX control is (...) (24 years ago, 29-Jan-01, to lugnet.robotics.rcx.nqc)

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