To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 333
332  |  334
Subject: 
Re: emulegOS: a new release
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 21 Jul 1999 13:13:15 GMT
Viewed: 
1250 times
  
Just a note about a small bug.  The supplied sample program ir-rover.cpp doesn't
work on the real RCX.  I think this may be due to IR complications under legOs.
I'm working on a version which will work on both the emulator and the real system
and will post it when I get it working (If someone beats me to it, please send it
along).  Basically when an IR function is called on the real system it crashes.
This is not a bug in emuLegOs, just in the sample program ir-rover.cpp.  I hope
that these emulated IR functions will prove usefull.

If you want to try tm-and-ir it works pretty well.  You do need to make a few
modifications to get it to compile and work under the emulator, but the new code
should also work on the real system.

put all the #includes inside the following

#ifndef EMULEGOS

puts #inclues here

#else
#include "emulegOs.h"
#endif

in show_task(void)

change
unsigned char *buffer="    ";
to
char buffer[5]="    ";

change int main(void) to

#ifndef EMULEGOS
int main(void) {
#else
int rcx_main(void) {
#endif

comment out the first two lines in main
/*
dlcd_show(LCD_S1_SELECT);
lcd_show(s1_select;
*/

this file should be named tm-and-ir.cpp
set the RCX_SOURCE environment variable to tm-and-ir
do a make

start the chat server
roboroom.tcl

start a chat client (optional)
guclient.tk

start the bot
tm-and-ir rcx.tk -ir

click the "ir connected" check button to connect to the server
click "run" to start the program
press "view" at any time to transmit the "Hello World!" message, which will appear
on the guiclient
type a message in the bottom box of the guiclient, hit enter and you'll see it in
the LCD pannel of the bot.


Mark Falco



Message is in Reply To:
  emulegOS: a new release
 
Mark Falco improved his Tcl/Tk version of emulegOS with tons of cool features. This version is now considered the "official" version of emulegOS, and we hope to release a Tcl based Windows version soon. The new features include: - IR support: (...) (25 years ago, 21-Jul-99, to lugnet.robotics.rcx.legos)

2 Messages 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