Subject:
|
R: R: Transmitting a message from the RCX to the PC
|
Newsgroups:
|
lugnet.robotics.rcx
|
Date:
|
Mon, 26 May 2003 07:45:34 GMT
|
Viewed:
|
3685 times
|
| |
| |
A C++ OO framework that encapsulates the LASM bytecode of Lego has been
developed
inside a didactical project.
The class spirit that maintains the communication with the RCX is the
fundamental part of this framework.
The source code of this class with included a visual C++ project
used to test the class can be downloaded from the web:
www.syco.it/temp/spirit.zip.
The class spirit and the related framework has been developed inside a
programming environment that offers the fundation libraries.
It si called G++ from SYCO, you can donwload it from www.syco.it.
It contains the graphical editors that allow you to inspect and edit the
class spirit
(spirit.cls is the file that visualizes at high level classes in G++).
G++ offers also the libaries you need to link the application.
As the communication requires multihtreading (the computer is continuously
waiting for
messages from the RCX), multithreading is programmed using graphical finite
state machines
offered from the editors of G++.
if you visualize with the G++ editor the class spirit.cls clicking
on the protected methods labeled with A (active) you will see directly the
finite
state machine. This is basically the protocol of communication.
Once you get acquainted with the notation, the programming of the class
will become clear.
If you are interested, the whole Lego Mindostorms framework is available.
Giuseppe
-----Messaggio Originale-----
Da: "Chris Phillips" <drvegetable@attbi.com>
A: <lugnet.robotics.rcx@lugnet.com>
Data invio: venerdì 23 maggio 2003 20.21
Oggetto: Re: R: Transmitting a message from the RCX to the PC
> In lugnet.robotics.rcx, Giuseppe Menga writes:
> > Look at the material, it contains a readme file.
> > this is just the top of the iceberg.
> > If you are interested let me know.
> > Giuseppe
>
> Giuseppe, your attachment was discarded by the LUGNET server. Could you
> briefly summarize the information from the readme file that you think is
> relevant to this discussion? Thanks in advance!
>
> - Chris.
|
|
Message is in Reply To:
11 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|