To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / *5755 (-100)
  Errors compiling egcs
 
Hi, I've just downloaded and attempted to install the binutils, egcs, and LegOs on my computer as per the instructions at (URL) only difference between these instructions and what I have done is the path to where the software is to be installed. (...) (23 years ago, 31-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: which Linux distro?
 
(...) Good Idea ! I had no problem using legOS when using a RedHat 7.1, Mandrake8 or a Conectiva 6.0, As far as I remember, there is a Debian package available for legOS. So... no matter which distribution you'll use, it will be far better than (...) (23 years ago, 31-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: Control the RCX from AppleScript
 
(...) Ahah! Check out the following SourceForge projects - still sadly in the VERY early stages! - for some potentially good news: (URL) too have USB devices that have been rendered useless by OS X and companies not wanting to bother upgrading (...) (23 years ago, 31-Jan-02, to lugnet.robotics.rcx.nqc)
 
  which Linux distro?
 
Hi, I am thinking of moving over to Linux, partly for legOS reasons (Lnp easier to set up for a start), but partly for other reasons (free software, morality etc, ie the usual waffle.) I am considering Redhat 7.2, Suse 7.3 personal or Suse 7.3 (...) (23 years ago, 31-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: Control the RCX from AppleScript
 
Sorry for the quick updates, but Robot Controller 1.4b2 is now available! This adds the ability to control several motors simultaneously in AppleScript. I have also posted an example AppleScript Studio project which uses Robot Controller to drive a (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: Incorrect result
 
(...) Yes, this is what happens when one is used to just making everything long and not considering overflows. Even worse was that I was doing the math on the computer's calculator, but not looking at the intermediate result, just typing in the (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: BricxCC release 3.3.3.4
 
hi Guido, I just a very little time also the comming week, but my first impression is very good !! Thanks very much. And you said you weren't a fast programmer ;-) (...) It sound great indeed. (...) I couldn't get it to work, but maybe I did (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: Incorrect result
 
(...) 256 * 128 = 32768, one higher as the biggest positive integer value. The cast to long would help, but your cast is too late. I have not tested, but I think rc += ( (long)b->magnitude * (long)TA_costable[...] ) >> 7; will help. Try output in (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  RE: Incorrect result
 
<snipped code> (...) Robert, this is a classic problem with ranges of singed numbers in C rx = (long)(a->magnitude * TA_costable[a->direction]) >> 7; I don't have an RCX in frot of me, but I think you need to cast a->magnitude to long before the (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  Incorrect result
 
This problem, unlike the other, is definitely not a result of my eyes/brain being tired or something. I thoroughly displayed every value before and after evaluation and the result is ***WRONG***. Here is the code and the values: typedef struct { int (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  RE: true tcp/ip on the RCX
 
Hi :) Just out of curiosity, check this thread from Jan/2000: (URL) mc. (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: true tcp/ip on the RCX
 
(...) <snip> (...) <snip> Yeah, I've got a server farm of 3 million RCXs. Each hosts errrrr... 1 page. ;-) Great job Olaf! Steve Martin IndyLUG (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: true tcp/ip on the RCX
 
"Olaf" <christ_o@gmx.de> schrieb im Newsbeitrag news:Gqo0BH.E9t@lugnet.com... (...) calls (...) <---snip----> Hi Olaf, i think it´s the wrong way to blow up the legOS kernel with a ip-stack, because you lost valuable RCX memory to legOS (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: Control the RCX from AppleScript
 
The lego camera will not work with imovie, I'm afraid. Imovie only works with DVcameras, not with webcams. I think the lego camera is actually one of the logitech cameras inside, so there may be a MacOS 9 driver, but not a MacOS X driver. I don't (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: Control the RCX from AppleScript
 
(...) Well, that helps some anyway...I'll cross post your info into the thread where we were last talking about this...I'm still waiting to see if anyone has tried opening iMovie with the LEGO camera plugged in, to see if will auto-recognize it...no (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: true tcp/ip on the RCX
 
<Mr Burn's> Excellent!!! I've seen some neat ideas but, this one takes the cake hands down.... Especially that it also appeared on www.slashdot.org makes it even more impressive.. Bravo to you.. Can't wait to see the webpage.. Wayne (...) (23 years ago, 30-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: true tcp/ip on the RCX
 
I will be axiously awaiting the web page too! This has many fun/useless possibilities! Email it to me or post it on this thread if you can. thanks nate www.nullgel.com (23 years ago, 29-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: Control the RCX from AppleScript
 
Hi Matt VideoScript is a seperate program (not written by me!), available from: (URL) uses any QuickTime compatible video device, and allows you to run AppleScript commands depending on what is seen on the video. It includes all kinds of video (...) (23 years ago, 29-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: true tcp/ip on the RCX
 
plz email me the url when u get it running thx -p (...) (23 years ago, 29-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: Control the RCX from AppleScript
 
(...) robotics thing myself yet. Actually, I'm writing this response to try to connect a couple of other things to you and your work, and hope you might have some input for the community. First, you say that your script controller supports the (...) (23 years ago, 29-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Control the RCX from AppleScript
 
Version 1.4b1 of Robot Controller is now available, with full AppleScript support. Inputs, outputs, program slots, datalog, variables and messages can all be controlled from scripts. Ideal for use with VideoScript (does everything which Vision (...) (23 years ago, 29-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: Strange behavior
 
In lugnet.robotics.rcx.legos, Robert Templeton writes: Nothing like talking to yourself :), but I did finally find the problem and it is in the code. It isn't always what's there, but what's not. Here's the offending section: (...) Instead of (...) (23 years ago, 29-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: BricxCC release 3.3.3.4
 
Hi Stef, I've just released version 1.3 of my Brick Music Studio. Now there is a much more precise correspondence between the original midi notes and the generated ones. All output programs (in any language) should now play the same (...) (23 years ago, 29-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: LNP Routing daemon with tcp/ip for RCX/legOS, Cybermaster/NQC
 
Hello NG, if you are interessted : there is a newer version of lnpoi available. there was a bug in the cybermaster-driver. refer to (URL) (23 years ago, 29-Jan-02, to lugnet.robotics.rcx.legos)
 
  Linux USB and NQC
 
Bret Thaler <BThaeler@aol.com> has written a driver for using the Lego USB tower under Linux, and he asked me to post this link to lugnet: (URL) haven't downloaded or tried the driver myself (no Linux boxes), so I can't say how well it works and if (...) (23 years ago, 29-Jan-02, to lugnet.robotics.rcx.nqc)
 
  true tcp/ip on the RCX
 
I ve got the very first and only tcp/ip enabled RCX in my room, cool, eh ? I will make a webpage at the end of the week to make the very first (rudimentary, but working) version available to the public. Right now, the tcp/ip stack is compiled into (...) (23 years ago, 28-Jan-02, to lugnet.robotics.rcx.legos) ! 
 
  Strange behavior
 
This code was working last night, but I removed some superfluous functions copied with the set (such as moveBackward() and pivotRight()) since they were not being used. All of a sudden, the robot turns okay, but never moves forward. It just sits (...) (23 years ago, 28-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: inverted penulum
 
(...) Let me know how your controller works. We could communicate each other our experience. Claude (23 years ago, 28-Jan-02, to lugnet.robotics.rcx)
 
  Re: inverted penulum
 
(...) Have you had any luck with the inverted pendulum? Im currently working on the same problem - ive designed a pendulum with plenty of damping and I have developed a mathematical model but I am unsure if it is accurate enough. Ive developed a PID (...) (23 years ago, 28-Jan-02, to lugnet.robotics.rcx)
 
  Re: BricxCC release 3.3.3.5
 
Please accept my sincere appreciation for the work you are doing with Bricxcc. I use this interface every time I program the RCX and have no complaints. I'm sure the vocal ones share my sense of gratitude. Thanks! Rich Jenkins (...) (23 years ago, 28-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: BricxCC or NQC?
 
(...) The only way to get these sort of errors is to turn on NQC 1.x compatibility mode. If you check the BricxCC Preferences dialog I am sure you will find that this option has been turned on (for some unknown reason). If that is (by some odd (...) (23 years ago, 28-Jan-02, to lugnet.robotics.rcx.nqc)
 
  BricxCC or NQC?
 
I've been working with NQC for 2.5 years and I have never come across these errors. I have been unsuccessful in my attempts to solve the problems. Perhaps someone already knows the answer. Here are some screen shots from the computer. As you can (...) (23 years ago, 27-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: BricxCC release 3.3.3.5
 
hi John, Your programming speed is faster than light, I even didn't have the time to unzip your previous version. (...) It works great ! You know John, for every person shouting in a newsgroup, there are a couple of hundred silent listeners, which (...) (23 years ago, 26-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: BricxCC release 3.3.3.4
 
hi Guido, (...) No, you thanks for the program ! (...) Great ! I'm not in a hurry and I'm very busy the next weekend + week. Stef (23 years ago, 26-Jan-02, to lugnet.robotics.rcx.nqc)
 
  BricxCC release 3.3.3.5
 
I've uploaded yet another BricxCC release. This one adds a "Tools/Configure Tools..." feature (often requested by at least one vocal BricxCC user). It is only partially implemented. All the important stuff is there but the parameter macros aren't (...) (23 years ago, 26-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: newbie
 
Hi Paula, While NQC is a nice place to start, you might want to consider LEJOS which, like legOS has its own firmware but it uses Java instead of C. It can do much more than NQC, and is quite bug free. Find out more at (URL) luck. (...) (23 years ago, 25-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: libm, windows
 
(...) No chance to get this running under legOS. You can do some float math like addition or multiplication but no trigonometric functions. Look in legOS/lib/float to see what can be done with the legOS floating point library. Mike (23 years ago, 24-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: BricxCC release 3.3.3.4
 
Hi Stef, (...) Studio", (...) clipboard (...) I'm already working on BMS in order to add all the features you asked for and I think that clipboard support should be quite easy. Nevertheless I'm not a "fast programmer", so please wait until my next (...) (23 years ago, 24-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: BricxCC release 3.3.3.4
 
Hi John, I am very sorry. It is just working perfect. It seems that my maximize and restore window where exact the same size. When I resized the window and toggled the maximize/restore button it works fine. Some cosmetics: When I click on one of the (...) (23 years ago, 24-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: BricxCC release 3.3.3.4
 
(...) the (...) ... (...) WOW! I'm impressed by how fast you continuously add new features to BricxCC, and by the quality of your work. Being very used to Delphi myself, I love the Code Explorer window. Ciao Mario (23 years ago, 24-Jan-02, to lugnet.robotics.rcx.nqc)
 
  libm, windows
 
has anyone had success with using libm in windows? I have legOS programs written from a solaris machine that compile fine and work when downloaded to the RCX, but I have not been able to compile them on a windows machine due to linking problems. The (...) (23 years ago, 24-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: BricxCC release 3.3.3.4
 
hi John, (...) great ! (...) even better ! (...) Well ok, but another way could be to monitor it's output (in the past in generated .....) and to shut it down when no more ... arrive. So the timeout parameter can disappear totally. I don't critize (...) (23 years ago, 23-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Rail Racers track operation details
 
I have finally documented how the current Rail Racers race track is controlled and configured. I hope to had more detailed information on each individual component soon, as well as the source code for the RCXs (developed in NCQ). The basic overview (...) (23 years ago, 23-Jan-02, to lugnet.robotics.rcx, lugnet.trains, lugnet.general) ! 
 
  Re: BricxCC release 3.3.3.4
 
(...) Hmmm. I'm guessing here. Does your main window fill the entire screen when it starts up? Does the restore/maximize button contain an image that looks like a box with a dark black bar across the top? Or does the restore/maximize button contain (...) (23 years ago, 23-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: BricxCC release 3.3.3.4
 
Hi John, Sorry for the incorrectness: "the upper right restore/maximize button still doesn't work" is the button of the Main Window. The child window is working OK. I made also an mistake on the tree request: It should be variables (and not (...) (23 years ago, 23-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: BricxCC release 3.3.3.4
 
(...) I'm not sure I understand what you mean by "the upper right restore/maximize button still doesn't work". Are you talking about the restore/maximize button on the main BricxCC window or the one on each MDI child editor window? Delphi programs (...) (23 years ago, 23-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: BricxCC release 3.3.3.4
 
Hi John, Wow you are a fast programmer. I just downloaded the new version and will test it. It is really great that this program is adapted to the user wishes/comments. Just one question: I bought a new computer (AMD 1.333 GHz Thunderbird, 512Mb, (...) (23 years ago, 23-Jan-02, to lugnet.robotics.rcx.nqc)
 
  NQC 2.4 r2 released
 
The only major change is the inclusion of USB support for the Macintosh/MPW version of NQC (which requires the driver and libraries from the Mac SDK available at www.legomindstorms.com) (URL) Baum (23 years ago, 23-Jan-02, to lugnet.robotics.rcx.nqc)
 
  BricxCC release 3.3.3.4
 
I've just released a new version of BricxCC. Version 3.3.3.4 implements the following changes: 1. Watching the brick only while the Watch window is active is now an option on the Watch window. 2. It fixes a bug in TFakeSpirit.SetSensorMode which (...) (23 years ago, 22-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: More RCX's controled by one tower ?
 
You cannot program them independantly, but you can make sure your programs respond to different IR messages during normal operation. All RCX's will receive the messages, but as long as only one responds with some action then independant control is (...) (23 years ago, 22-Jan-02, to lugnet.robotics.rcx, lugnet.robotics)
 
  Re: thread class for legOS
 
(...) In the post you replied to saying "static doesn't matter", the proposal was: private: static int runWrapper(...) ; I then replied to your post, etc. Anyway, let's not degenerate into he-said-she-said. We're really just talking past each other (...) (23 years ago, 22-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: NQC 2.4 r1 released
 
Its been brought to my attention that Lego has already released the Mac SDK and driver for the USB tower (sorry I didn't see it!): (URL) should be able to post an updated version of NQC with USB support for Mac OS9 tomorrow. Dave (...) (23 years ago, 22-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: thread class for legOS
 
(...) In fact, neither of these suggestions will work with the code as it stands, because the runWrapper() function tries to call the Run() function, which is a non-static member function. You could pass a pointer to the class instance (this) in the (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: thread class for legOS
 
(...) Unless you define a function as a member function, there is no this parameter at all. In the example given, it was not a member function at all (nor should it be). I believe you are thinking of a static member function vs. a non-static member (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
 
  RE: firmware
 
SDK 2 includes the latest version of firmware and tools to load it to the RCX. It's also included in the new RIS 2.0 CD The new RIS 2.0 is the one with the RCX 2.0 + USB InfraRed Tower + Latest firmware version (you could call it 2.0, yes) You can (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: firmware
 
this sdk 2 is the firmware??? -- Paula Berger E-mail: pberger@terra.com.br paula@inf.pucrs.br ICQ#: 71133278 "It's the end of something simple, and the beginning of everything else" -- ----- Original Message ----- From: "Robert Seifert" (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: firmware
 
(...) Firmaware is a kind of ?operating system? needed to be downloaded to RCX to allow it process programs. Physically it is file firmxxxx.lgo (where xxxx is a number ) located somewhere in directory tree created by RIS installation process. If you (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.nqc)
 
  RE: newbie
 
If you decide to use LegOS you won't be needing nor will you have the chance to use NQC because a RCX with LegOS loaded won't understand nor respond to any standard firmware commands. Check (if you didn't already) the side links at: (URL) From: (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
 
  RE: newbie
 
so if i decide to use LegOS I don't need NQC, right? as I understood, de LegOS itself it's complete to be used alone.... (...) programs on RCX. (...) LEGO (...) could call (...) LEGO (...) standard LEGO (...) for (...) run some (...) don't (...) -- (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
 
  RE: newbie
 
LegOS is an operation system ( a firmware replacement in itself) It's like a mini UNIX system, that will run true C compiled programs on RCX. NQC on the other hand, all it does is translate a NQC program into LEGO pCode that will be *interpreted* by (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
 
  newbie
 
Hi everybody, I'm starting to use Lego products and I'm having problems to undrestand a few things. For example, I want to use NQC and I don't understand why the LegOS needs a C cross-compiler... or by having LegOS I don't need NQC? -- Paula Berger (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
 
  RE: newbie
 
I'm not 100% sure, but when I used Spirit.OCX (VC, VB, Delphi, etc...) for some research, I was under the impression that it supported 3 types of interface: "Radio" (CyberMaster), "InfraRed" (RCX, Scout) and I think it was "Cable" or "Direct" or (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.nqc)
 
  firmware
 
People, What is this "firmware" that is supposed to be loaded into the RCX? Is there anywhere I can download it?? Thanks, -- Paula Berger E-mail: pberger@terra.com.br paula@inf.pucrs.br ICQ#: 71133278 (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: thread class for legOS
 
(...) Static DOES matter; it declares the method as being a "class" method, rather than a normal instance method. I believe there is no implicit 'this' parameter and therefore it can be treated like a normal function. Of course, it can't be linked (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: thread class for legOS
 
(...) No, static doesn't matter but it is possible the calling conventions of C and C++ might be different (I don't know of a platform where that is the case for a an extern function), so you might need to specify C linkage, as in: extern "C" int (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: thread class for legOS
 
(...) Haven't done any C++ for a while, but IIRC you just need to declare runWrapper as static, ie: private: static int runWrapper(...) ; HTH ROSCO (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: threads - bug in the firmware?
 
(...) Advantage: Less memory used (each thread needs a block of memory in the kernel, I'm at work & can't remember the struct name off hand). In the case under discussion, this doesn't make much difference, but in a large project, memory use can (...) (23 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: Still having problems with helloworld.c
 
John, Where is the source for makelx ?? I am having this same problem. Thanks JohnG (...) (23 years ago, 20-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: LNP Routing daemon with tcp/ip for RCX/legOS, Cybermaster/NQC
 
Sources for the LNPoI Router are available now. You find it at (URL) . Bye (23 years ago, 20-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: More on threads
 
(...) I recall that legOS's priority model is pretty rigid. If a thread with a higher priority never yields, threads with lower priority will never get any time. When I write legOS programs, I generally just have everything run at PRIO_NORMAL. That (...) (23 years ago, 19-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: More on threads
 
(...) Digging through tm.c gave me the impression, that main will indeed get no time slice. So I wrote another test program: ---...--- #include <conio.h> #include <unistd.h> pid_t worker; int work_task(int argc, char *argv[]); int main() { int i; i (...) (23 years ago, 19-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: More on threads
 
(...) ability to terminate but to run in an endless loop. But This is not true of an embedded system though which will have to run 'forever'. (...) priority of NORMAL+4. So, the (...) any time slice at all. NO time slice or just a very small chunk (...) (23 years ago, 19-Jan-02, to lugnet.robotics.rcx.legos)
 
  NQC 2.4 r1 released
 
It seems like NQC 2.4 has been stuck in beta test for a very long time...I wanted to wait for Mac OS 9 and Linux USB support, but at the moment Lego hasn't released their Mac OS 9 driver and the Linux situation is probably best addressed right now (...) (23 years ago, 19-Jan-02, to lugnet.robotics.rcx.nqc)
 
  More on threads
 
(...) Of course you are right. I think it is a bad programming style not to give your program the ability to terminate but to run in an endless loop. But what is the penalty for this bad style? I've done some investigations and here are the results: (...) (23 years ago, 18-Jan-02, to lugnet.robotics.rcx.legos)
 
  Deleting Programs
 
I am using legOS to program a robot for a uni project because the other stuff is aparently too simple but i cant delete the current programs off the RCX to download the new firmware. Is there any other way of doing this without just leaving the (...) (23 years ago, 18-Jan-02, to lugnet.robotics.rcx)
 
  More RCX's controled by one tower ?
 
Heya all ! Sorry if this was discused before but is it possible to control or program for example two RCX bricks with one tower from one PC so they work indifferently from eachothers in ONE model ? - Thanx ! - Rene (23 years ago, 18-Jan-02, to lugnet.robotics.rcx, lugnet.robotics)
 
  Re: thread class for legOS
 
(...) IRC, every method in C++ has an implicit parameter wich is the object itself; that's why you can't cast it. Try the following (does someone have a nicer solution?): Put runWrapper() outside the class: int runWrapper(int, char **th) { (...) (23 years ago, 18-Jan-02, to lugnet.robotics.rcx.legos)
 
  thread class for legOS
 
I write a Thread class for LegOs with a simple interface like in Java or CommonC++. I'm using LegOs 0.2.4. Below are my work till yet. The problem is in the Method Start(). The line is marked with !!. The error message is at the end of the file. I (...) (23 years ago, 18-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: LNP Routing daemon with tcp/ip for RCX/legOS, Cybermaster/NQC
 
"Freddy" <mail-nowak@web.de> schrieb im Newsbeitrag news:GpzyB6.Kpt@lugnet.com... (...) A C++ class to build client application without knowing the LNPoI protocol is available for Windows and Linux now. (URL) (23 years ago, 18-Jan-02, to lugnet.robotics.rcx.legos)
 
  Several questions
 
Dear Mindstormers, For months I didn't find the time to do some work with my Mindstorms equipment. So some things have changed and also new products came onto the market. I have just started work with Mindstorms again and have some (...) (23 years ago, 18-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: threads - bug in the firmware?
 
(...) I would strongly suggest changing this to while(1) msleep(bignumber);. Otherwise you're hogging the processor doing nothing important, which could do bad things to any compute-intensive tasks you may have going. It'll also use slightly less (...) (23 years ago, 18-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: threads - bug in the firmware?
 
Hi Ross (...) you (...) What are the advantages and disadvantages of this method as opposed to the one I used? mike (23 years ago, 18-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: threads - bug in the firmware?
 
(...) Note also since bumper_task() is an infinite loop, and you never use pid1, you could save one thread by doing this: int main(int argc, char *argv[]) { pid2 = execi (&left_task, 0, NULL, PRIO_NORMAL+2, DEFAULT_STACK_SIZE); pid3 = execi (...) (23 years ago, 17-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: threads - bug in the firmware?
 
;-) That worked a treat, thanks Michael. (thanks for the other little corrections in the code too). mike (...) Mike, (...) your subroutines and then you leave main()! Leaving main means (...) memory is freed. The following will do the job: (...) (...) (23 years ago, 17-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: threads - bug in the firmware?
 
Hi Mike, your problem is not because of an error in legOS. But what you do is that you start your subroutines and then you leave main()! Leaving main means that all your allocated memory is freed. The following will do the job: ---...--- cut here (...) (23 years ago, 17-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: IRC
 
(...) Please, in the future, cross post to multiple groups instead of separate messages. You can cross post in the web interface by entering all of the newsgroups separated by commas. If posting via NNTP, most newsreaders allow you to sellect (...) (23 years ago, 17-Jan-02, to lugnet.robotics.rcx.pbforth)
 
  IRC
 
Anyone who is a regular user of IRC can join my channel #LegoMindstorms (on dalnet). Coma and chat or give/recieve assistance. If you join you are welcome to Ops because anyone in here will know more about Mindstorms than me as i know almost (...) (23 years ago, 16-Jan-02, to lugnet.robotics.rcx.pbforth)
 
  IRC
 
Anyone who is a regular user of IRC can join my channel #LegoMindstorms (on dalnet). Coma and chat or give/recieve assistance. If you join you are welcome to Ops because anyone in here will know more about Mindstorms than me as i know almost (...) (23 years ago, 16-Jan-02, to lugnet.robotics.rcx.legos)  
 
  IRC
 
Anyone who is a regular user of IRC can join my channel #LegoMindstorms (on dalnet). Coma and chat or give/recieve assistance. If you join you are welcome to Ops because anyone in here will know more about Mindstorms than me as i know almost (...) (23 years ago, 16-Jan-02, to lugnet.robotics.rcx.robolab)
 
  IRC
 
Anyone who is a regular user of IRC can join my channel #LegoMindstorms (on dalnet). Coma and chat or give/recieve assistance. If you join you are welcome to Ops because anyone in here will know more about Mindstorms than me as i know almost (...) (23 years ago, 16-Jan-02, to lugnet.robotics.rcx.nqc)
 
  IRC
 
Anyone who is a regular user of IRC can join my channel #LegoMindstorms (on dalnet). Coma and chat or give/recieve assistance. If you join you are welcome to Ops because anyone in here will know more about Mindstorms than me as i know almost (...) (23 years ago, 16-Jan-02, to lugnet.robotics.rcx.java)
 
  IRC
 
Anyone who is a regular user of IRC can join my channel #LegoMindstorms (on dalnet). Coma and chat or give/recieve assistance. If you join you are welcome to Ops because anyone in here will know more about Mindstorms than me as i know almost (...) (23 years ago, 16-Jan-02, to lugnet.robotics.rcx)
 
  Re: threads
 
Albert (...) yea, I see what you are getting at. I am sure that I was hitting the bumper while the threads were still alive, but I will check again. I think this also points out some of the dangers of just dumping in some poorly thought out dummy (...) (23 years ago, 17-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: newbie again part 2
 
Actually, I wouldn't recommend using the simulator. My original intention was to develop the core of a simulator thus enabling other people to make a full-fledged application with nice menus and dialog boxes. Since that hasn't happened, the (...) (23 years ago, 17-Jan-02, to lugnet.robotics.rcx.nqc)
 
  Re: SDK 2.0
 
(...) Umm. When I installed the new SDK it worked just fine, but I downloaded it from a different site: (URL) you could try replacing the troublesome file with the original one on your Windows installation CD. --Ian (23 years ago, 17-Jan-02, to lugnet.robotics.rcx)
 
  Re: threads - bug in the firmware?
 
(...) As pointed by Albert Huang, you cannot call kill() with an "invalid" pid. Actually, the comment above kill() in tm.c says: //! kill a process /*! \param pid must be valid process ID, or undefined behaviour will result! The function updates (...) (23 years ago, 16-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: threads
 
two of your threads terminate shortly after being started (...) as far as I know, legOS provides no functionality for determining whether or not a thread is alive or not. You need to keep track of this yourself (e.g. using a variable/flag that gets (...) (23 years ago, 16-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: threads - bug in the firmware?
 
Hi again I have now totally stripped down my code to a minimum and I am still having problems with the code hanging up. I can see nowhere where there can be a fault. I am a long way from being an expert, but is it possible there is a bug in the (...) (23 years ago, 16-Jan-02, to lugnet.robotics.rcx.legos)
 
  Re: Cygwin problems
 
Ben I recommend you read the Howto from the sourceforge docs section, or even better buy the Extreme Mindstorms book (Extreme Mindstorms; D. Baum, M. Gasperi, R. Hempel, L. Villa; Apress; ISBN: 1893115844 ) . Both give a good explanation of legOS. (...) (23 years ago, 16-Jan-02, to lugnet.robotics.rcx.legos)
 
  Cygwin problems
 
Hi all, i am having problems with cygwin. It doesnt help that i dont know what all these linux commands mean but i will explain my problems now. I have intstalled all the software to my system ok and the linux emulator seems to work fine(i can use (...) (23 years ago, 16-Jan-02, to lugnet.robotics.rcx.legos)


Next Page:  5 more | 10 more | 20 more | 100 more

Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR