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 / *1844 (-100)
  Re: error from makelx: address out of bounds
 
I've found it. They must be declared as static: static LightSensor s(LightSensor::S3,false); int main(){ ... } Regards. Michael Wisse (...) (23 years ago, 20-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: WinLNP Issues
 
Hi Matt, i had the same problem. That's a Microsoft *feature* ;-) that comes with visual C++ 6.0. (This problem is described in the MSDN. If you've got it installed, you 'll find details there.) You have to get a service pack for this compiler. Get (...) (23 years ago, 20-Apr-01, to lugnet.robotics.rcx.legos)
 
  WinLNP Issues
 
I'm trying to compile WinLNP, and I've run across a baffling problem: h:\program files\microsoft visual studio\vc98\include\...til.h(101) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) Please choose the Technical (...) (23 years ago, 20-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: code
 
(...) [snip] (...) Can't see anything glaringly obvious, except you've used different priorities for your tasks. As they're infinite loops with no waiting, it's probably better to make their priorities equal. But the best way is probably to do all (...) (23 years ago, 19-Apr-01, to lugnet.robotics.rcx.legos)
 
  code
 
Hi,I'm trying to run 2 infinate loops at the same time. Is this possible? this is an example of what I'm trying to do. thanks #include <unistd.h> #include <dmotor.h> #include <dsensor.h> #include <conio.h> #include <time.h> pid_t fun_a; pid_t fun_c; (...) (23 years ago, 19-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: Declarations in header files
 
(...) "extern inline" means that we are defining an inline function, but if the inline function is not used, there is also an externally defined function with the same purpose. So, if you compile without optimization, it acts like "extern void (...) (23 years ago, 18-Apr-01, to lugnet.robotics.rcx.legos)
 
  error from makelx: address out of bounds
 
Hallo! My question again: I tried to declare sensors global, out of main(): Motor motor(Motor::B); LightSensor s(LightSensor::S3,false); int main(){ ... } make reports an error: /home/micha/legOS/util/makelx test.ds1 test.ds2 test.lx test.ds1: (...) (23 years ago, 17-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: Dynamic lists allowed?
 
(...) Thanks for your help. The program is running fine now. Would you happen to know if anyone has created this sort of high level functions? If not more people might be interested. jm (23 years ago, 13-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: Dynamic lists allowed?
 
(...) This should be "struct tNode *next;" (...) After this, any time you want to refer to a tNode, you need to say "struct tNode". Or you can put "typedef struct tNode tNode" and then use the "tNode" as a type like you're doing. (23 years ago, 12-Apr-01, to lugnet.robotics.rcx.legos)
 
  Dynamic lists allowed?
 
Since I just got started with legOs (thanks to 'Extreme Mindstorms'), I'm creating a set of high level utility functions. This one here is intended to display a DYNAMIC list of values, but there seems to be a problem with the use of 'struct' and (...) (23 years ago, 12-Apr-01, to lugnet.robotics.rcx.legos)
 
  c++, sensor declaration
 
Hallo! I tried to declare sensors global, out of main(): Motor motor(Motor::B); LightSensor s(LightSensor::S3,false); int main(){ ... } make reports an error: /home/micha/legOS/util/makelx test.ds1 test.ds2 test.lx test.ds1: address out of bounds on (...) (23 years ago, 10-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: c++, classes
 
Hallo Frank, yes, it helped, thanks. But I still don't understand the background. Normally, in c++ you can initialize your private components in the body of the constructor or with a initialization list, like in your suggestion. Reagards. Michael (...) (23 years ago, 10-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: dll problems
 
Nevermind, I figured it out. Apparently some of the programs weren't compiled correctly in the demo folder because some of them worked and some didn't. I was able to recompile some of them and then they would download. Wierd but at least I figured (...) (24 years ago, 8-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: dll problems
 
Hmmm.... After messing around with it some more, I'm getting a new error message: "error creating program" . quite similar to the last one but not quite the same. Thought that might help in figuring this out. Nate Ridderman (24 years ago, 7-Apr-01, to lugnet.robotics.rcx.legos)
 
  dll problems
 
Hi, I'm trying to install legOS 0.2.4 on my rcx from a windows system. I need to use it for a computer programming class I'm taking. I was able to download everything and successfully installed the firmware, however I'm unable to use the dll program (...) (24 years ago, 7-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: RCX Comm via input-output connection?
 
(...) There's a couple of other ways to do it (besides the off / float mentioned by others): 1. Have the motor off RCX1 drive a rotation sensor on RCX2. Requires more space & parts. 2. Use LNP (infra-red communication). But requires that RCXs are in (...) (24 years ago, 6-Apr-01, to lugnet.robotics.rcx.legos)
 
  OT: Exploration Mars Balloon Tires Part#
 
Hello Does anyone know the LEGO-Shop-At-Home part# for the balloon tires that come with the Exploration Mars Expansion Set ? Thanks Tim Goodwin (24 years ago, 6-Apr-01, to lugnet.robotics.rcx.legos)
 
  RE: RCX Comm via input-output connection?
 
Hi Jakob, Search for "Electrical Data Link between 2 RCXs" thread on lugnet.robotics.rcx.ncq and various threads on lugnet.robotics ((URL) such as "CM-RCX" and more. I'm finishing up a *NQC* input/output VLL lib that supports direct electrical (...) (24 years ago, 6-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: RCX Comm via input-output connection?
 
Hi, Jakob, It is possible and discussed here several times. Have a look at this : (URL) ;-) Why not use the search button ? ;-) (...) (24 years ago, 6-Apr-01, to lugnet.robotics.rcx.legos)
 
  RCX Comm via input-output connection?
 
Hi! Does anyone know if it is possible to have to RCXs communicate by connecting the motor outputs of one to the sensor inputs to the other? I have a slight feeling this could burn things due to the high-voltage (relatively) output of the RCX motor (...) (24 years ago, 6-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: c++, classes
 
Hi Michael, if you want to use a declarator list in the constructor you have to use the following syntax: /******* Implementation of the constructor ***...***/ LightSensorHead::Lig...ensorHead( const Motor::Port motorport, const Sensor::Port (...) (24 years ago, 5-Apr-01, to lugnet.robotics.rcx.legos)
 
  c++, classes
 
Hallo! I try to write a class for legOS in c++. The constructor should get parameters for the used ports for a motor and two sensors, which are private components of the class. Then the contructor should assign these given ports to the private motor (...) (24 years ago, 4-Apr-01, to lugnet.robotics.rcx.legos)
 
  Can you test it for me?
 
I made a lx file, but I can't test it, could you help me? (URL) (24 years ago, 4-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: max size of .lx
 
(...) I don't know what the max is, but I have routinely worked with .lx files up to about 12,000 bytes, so you should be fine. (24 years ago, 3-Apr-01, to lugnet.robotics.rcx.legos)
 
  max size of .lx
 
I got a .lx file that size is 9660 bytes, I am not sure if it can be downloaded to RCX, what is the max size of .lx? Zhengrong (24 years ago, 3-Apr-01, to lugnet.robotics.rcx.legos)
 
  What difference between 0.2.4 and 0.2.5?
 
I am using 0.2.4 now, I want to know what difference between 0.2.4 and 0.2.5 to decide if I need to upgrade it. Br Zhengrong (24 years ago, 3-Apr-01, to lugnet.robotics.rcx.legos)
 
  Combo sensors (rotation AND light, same input)
 
Hi, I've got a way to use a Rotation sensor and a light sensor on the same input, and get reliable, useful values from both. This is for real. See : (URL) was interested if anyone else has done this. Enjoy everyone. Mike Amy (24 years ago, 2-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: Neural network for legOS... ??
 
(...) (24 years ago, 29-Mar-01, to lugnet.robotics.rcx.legos)
 
  Ser. Col. Only!! I'll cover shipping!!
 
(24 years ago, 29-Mar-01, to lugnet.robotics.rcx.legos)
 
  Serious Collectors Only!
 
I'm selling my entire collection for $4,500. There are over 300 sets MISB, and over 200 sets opened but still in mint condition. Over 90% of the opened sets were put together once; and then sealed in zip-lock bags. The boxes of the MISB sets are in (...) (24 years ago, 29-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Assembly in my C-program
 
(...) If you want to drive directly the motors you should first disable motor handling in legOS (remove CONF_DMOTOR definition in config.h). Then you can create a high priority task that switches motors on and off writing in the motor output port. (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Assembly in my C-program
 
(...) pulses (...) at (...) would (...) Hmmmm. This should be possible, but it's a bit more tricky with stepper motors - you have to allow for the speed-up and slow-down. Thus just calling motor_speed(50) would have to initiate a task that starts (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Assembly in my C-program
 
Actually I am trying to control a stepper motor. So when i need to send 50 pulses fast, motor on and off takes same time because there same other tasks running at the same time. So it would be much quicker if I could just call motor speed (50), and (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Assembly in my C-program
 
(...) to (...) This should be performed by mapping a variable on top of the memory location, and NOT by inline assembly. (...) What is wrong with speed=0 for off and speed=255 for on? /jakob (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Assembly in my C-program
 
HI, I was wondering if I could write assembly code in my c-program. I would like to access the motor output port as a digital port and control when it is on and when off (possibly writting something like "mov.b r6l,@0xf000:16"). Or can I change the (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: .lx format
 
(...) We are going to use this solution. Seems simpler. /jakob (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Running IR in the background
 
(...) Congratulations! Could you post your source code here, to compare with the solution that we previously submitted to an almost identical question? We use an active light sensor reading in one taks, with a different task bangin zeroes using (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: .lx format
 
(...) We arrived at that solution independently here... it makes more sense. Also, since only the parts of the kernel we actually use need to be linked in, the result should be much smaller than a full kernel. Furthermore, the compiler we are using (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: .lx format
 
(...) We arrived at that solution independently here... it makes more sense. Also, since only the parts of the kernel we actually use need to be linked in, the result should be much smaller than a full kernel. Furthermore, the compiler we are using (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Library use in LegOS
 
(...) of (...) For the IAR compiler, this should not a problem. The libraries are optimized for minimal size, so we can probably use the standard libraires. And give our students the benefit of a full C lib. /jakob (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Neural network for legOS... ??
 
(...) Sorry Niels, but I would say just try it yourself, they're not that hard to do, failing that if you can find the source for a small ANN, then that stands a good chance of working, I'm running quite a powerful evolutionary algorithm on mine, (...) (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Running IR in the background
 
Hannes, I got it to work last night. I'm modifying Markus Noga rover.c code (included when you download legos files) to include support for IR port and (passive) light sensor. Great code to look at if you're just learning C/C++. Basically, the (...) (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Running IR in the background
 
(...) Commentary below. (...) I must have missed this one the first time around. lnp_logical_write() will block, but it should only block the thread it's called from. Put your send-zero loop in a separate thread and I think you should be set. (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Running IR in the background
 
(...) Huge coincidence that your message should be the first I see after not having read the newsgroup for almost a year. No, as far as I can remember I never got an answer. I am using mindstorms for my final project after not having a chance to (...) (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Running IR in the background
 
Hannes, Did you ever get any help with your question (below)? I'm trying to use the IR port on RCX along with light sensor (passive) as collision detection device. Having the same problems you're having. Clayton (...) (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Library use in LegOS
 
(...) Not sure of the details, but the linker takes the .o file, and the symbol file LegOS.lds, created during the kernel compile, and produces two files; .ds1 & .ds2, which are then passed to makelx to produce the lx file. So it seems the linker (...) (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: .lx format
 
(...) One other possibility is to not use the lx files at all - just stick to the srec format as (I think) LegOS used to (version 0.1.x?). A bit less efficient downloading the kernel all the time, but removes the need to dabble with lx format at (...) (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
 
  Declarations in header files
 
Hi! This is very technical, but: does the declaration of an "extern inline const void" function really make sense? GCC accepts it, but that is a VERY lenient compiler. An extern function should be definition not have a definition, and 'const void' (...) (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: .lx format
 
(...) So in effect, it is dependent on the gcc loader mechanism. Ungh! The idea of using two symbolsrec files: one could be kernel, the other the program. Would make sense for kernel call resolution. (...) I looked at it, and it mainly outputs (...) (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Library use in LegOS
 
(...) OK. How are the calls to the kernel resolved? By the makelx program, or by some magical stuff in the linking. I can imagine compiling the kernel, getting a symbol table out, and then when compiling user programs, you use a linker DEFINE or (...) (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
 
  Neural network for legOS... ??
 
Hi everybody I'm looking for a free neural network library, that I can use with legOS. Anybody knows where to look ?? Niels (24 years ago, 26-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: .lx format
 
(...) Look at legOS makefiles. The lx file is generated from two symbolsrec executables linked to different positions. The files are generated with a special linker script "legOS.lds". Maybe you can do the same with your compiler and use the makelx (...) (24 years ago, 26-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: code
 
(...) [etc.] Also, don't you use ROTATION_X instead of SENSOR_X once you get the rotation sensor set up on that port? I thought it was something like that. I'd also like to comment that this is dangerous. It's theoretically possible that your sensor (...) (24 years ago, 26-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: code
 
yego, The wait_event function takes an event function as the first parameter, not a sensor number. You need something like (forgive any errors - I don't have LegOS available at work) int rotation_event_3(wakeup_t data) { if (SENSOR_3 == data) return (...) (24 years ago, 26-Mar-01, to lugnet.robotics.rcx.legos)
 
  code
 
Hi, I'm a newbie to c++ and legOS. Here is my code. Do you know what is wrong with it cause I don't. Thanks /* s.c*/ #include <unistd.h> #include <dmotor.h> #include <dsensor.h> int main(int argc, char **argv) { /* turn it on */ (...) (24 years ago, 26-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Library use in LegOS
 
Jakob "Fepp" Engblom <fepp@ieee.org> wrote in message news:GAr7Gr.2v3@lugnet.com... (...) handled (...) Each program gets it's own copy (...) Hmmmm. Not sure. Wish I knew more about compiler internals... (...) have (...) It's all custom written - (...) (24 years ago, 26-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: legOS papers?
 
(...) I could do with some technical references for my bibiliography, and so after much searching[1], I can reveal that that AUC is Aalborg University, Denmark. Furthermore, most of the authors can be found in the Computer Science department: (URL) (...) (24 years ago, 25-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Linking failure when 'making' an lx file
 
(...) Syntax error: you are missing a parenthesis at the start, right after the if. But gcc should give a fat error at the ">" sign I believe. if( COND ) STATEMENT; if( (ul_var1 - ul_var2) > sizeof(uchar)) STATEMENT; (...) It is miraculous that the (...) (24 years ago, 25-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Memory Usage
 
(...) Having written a few embedded-systems compilers, I must say that using floating point on an 8-bit chip like the H8 is generally considered crazy. The values eat memory, and the libraries drawn in can get really large (at least for a production (...) (24 years ago, 25-Mar-01, to lugnet.robotics.rcx.legos)
 
  Library use in LegOS
 
Hi! Another technical question about LegOS: how are libraries like float handled today? Is there one copy linked into LegOS, or is each downloaded program equipped with its own copy? If I would use a different compiler, with a different set of (...) (24 years ago, 25-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: pass by refrence or value?
 
Some basic facts about C semantics: As already stated, globals MUST be volatile if they are accessed by more than one thread, otherwise reads and writes can be out of sync. What are the types of the variables involved? Scalar values like integers (...) (24 years ago, 25-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Obstacle detection : infrared sensor ??
 
(...) We have done this in C using LegOS (it is much easier to get it off the ground in nqc). The principle is simple: * Attach the light sensor in front of the brick, close to the IR tranceiver. preferably in a low position, since you want to (...) (24 years ago, 25-Mar-01, to lugnet.robotics.rcx.legos)
 
  .lx format
 
Hi! I am presently helping some PhD students here at my university prepare the labs for a real-time course using LegOS. As part of the course, we want our students to experience a modern development environment for embedded systems, and have (...) (24 years ago, 25-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Obstacle detection : infrared sensor ??
 
(...) Yeah, I built a robot and programed it whith a nqc program that someone else wrote. I dont't remember who and I don't have any links, but I do remember how it worked The rcx would send out a infarad message every cauple of mlseconds and a (...) (24 years ago, 25-Mar-01, to lugnet.robotics.rcx.legos)
 
  Obstacle detection : infrared sensor ??
 
Hey.. I don't know if this is a LegOS question, but here it goes... Is it possible to detect obstacles via the infrared sensor, before you bump into them ?? Like measuring reflection of infrared light or something... If it is... how ?? can anybody (...) (24 years ago, 24-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
(...) Are you doing the if() in some kind of loop, or an event function? If the button isn't pressed at the exact time you happen to execute the statement, it won't work. It's difficult to help debug your code without seeing your code 8?) ROSCO (24 years ago, 22-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
(...) havent followed the whole conversation here, but if ur doing an "if "test and it doesnt hit when it should, you might consider displaying the TOUCH_2 variable on the display just before the "if" test, it might not be what you think it is! (...) (24 years ago, 22-Mar-01, to lugnet.robotics.rcx.legos)
 
  video game type thing...
 
Well, it still doesn't work even with the if(TOUCH_2){} instead of if(TOUCH_2 == 1){} . Any ideas? Nick H. (24 years ago, 22-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: More than one Source C file
 
Please ignore this message, Dyanimc objects :) - Ciaran (24 years ago, 20-Mar-01, to lugnet.robotics.rcx.legos)
 
  More than one Source C file
 
Hi, I'm trying to compile together several C++ objects, each of which is contained in a seperate .c file, with a seperate header file, in GCC, I'd just use gcc foo.c fooa.c foob.c -o out.exe ... or whatever, how do I adjust the legos Makefile to (...) (24 years ago, 20-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Code
 
Chris, there's a CVS repository at SourceForge. Go to the legos page at legos.sourceforge.net. You'll need update access if you want to check anything in, but anyone can check out the latest, greatest source (or any previous version). HTH BTW, I (...) (24 years ago, 19-Mar-01, to lugnet.robotics.rcx.legos)
 
  Code
 
Is there a legOS code repository where LegOS users share code? (24 years ago, 19-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: ROM Firmware size limit? Firmdl bug?
 
(...) does the (...) them (...) web (...) when (...) rcx_comms (...) have (...) I've not done latest merge (few lines in firmdl.c), but I've modified the rcx_comms to make it win32-working (100%) inside legOS. I will send ASAP modified firmdl source (...) (24 years ago, 17-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: ROM Firmware size limit? Firmdl bug?
 
(...) I remember when I added support for larger firmware files, there was a merge that took place to get my changes into the LegOS version of firmdl. Probably Cygwin support got lost during this merge. This should be put back into LegOS for sure, (...) (24 years ago, 17-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: ROM Firmware size limit? Firmdl bug?
 
(...) Hmm. Quad speed downloading in Version 3.1 doesn't seem to work under Cygwin on W2K (though single speed does). It always returns either a 'write: permission denied' of 'bad ir link' error (which one it is seems to be random!) , even if the (...) (24 years ago, 17-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: ROM Firmware size limit? Firmdl bug?
 
(...) Get the latest version of firmdl and/or the latest version of LegOS. (URL) (24 years ago, 15-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
I'll try that. I thought it was something or other like this. I'll post when I'm at least partially successful. (24 years ago, 15-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
Nick, The TOUCH_x macros are boolean - they return true or false. You should be testing if (TOUCH_2) {....} HTH ROSCO (...) (24 years ago, 15-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
I just got new batteries for my RCX, so I just did an actual test. I didn't get very far. I don't believe that it is registering the touch sensors. Here's how I had it: if(TOUCH_2 == 1) { do this and that and that; } What's wrong with it? I should (...) (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
Or pid_t pid1 = execi... Philippe (...) (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
(...) Shouldn't (...) No, the returned process id is an integer (int) I believe, you just replace it with int pid1 = execi .... for example :) - Ciaran (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
It probably should. But why does it say that "pid1" is undeclared? Shouldn't that be taken care of in tm.h or unistd.h? (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
 
  Kernel proposal - message passing and signals
 
Hi, I have been poking around in the legOS kernel and it appears that there is no formal way to pass messages between tasks - only shared protected resources through semaphores. I intend to modify the kernel to add the features descried below. Note (...) (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
(...) <-- Cut -- > (...) Shouldn't thist say kill(pid1); ? - ciaran (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
I worked on that. I'm having trouble with "execi()" and some stuff related to it. Here's the offending area, but not the entire program: int main(int argc, char **argv) { pid1=execi(&startup, 0, NULL, 1, DEFAULT_STACK_SIZE); MYexit = -1; cputs("x"); (...) (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
(...) No, it will not. Functions don't work like that, in general. If you want to call a function and have it run independently of the calling function, you must use execi() to start it. (24 years ago, 12-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
Thanks for the response! Now I'm almost ready to test it. I just need to know if, when you have a call void function, and you then use the int main() to close the program with return 0;, will the void keep running? Here's my current copy, without (...) (24 years ago, 12-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
Thanks for the response! Now I'm almost ready to test it. I just need to know if, when you have a call void function, and you then use the int main() to close the program with return 0;, will the void keep running? Thanks Nick Howell (...) (24 years ago, 12-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: video game type thing...
 
(...) I think you mean if (enemy == 1). Also, the identifier "fight" resolves to the address of the fight function. Doing "fight;" is equivalent to doing "1;". It's legal, but it doesn't accomplish anything. You want to do "fight();" and (...) (24 years ago, 12-Mar-01, to lugnet.robotics.rcx.legos)
 
  video game type thing...
 
I'm building a video game type thing. It has three touch sensors, for left, right, and fire. The LCD controls where the enemy is. I'm having some problems with my code, so here it is(I'm using kernel 0.2.4): #include "conio.h" #include "dmotor.h" (...) (24 years ago, 12-Mar-01, to lugnet.robotics.rcx.legos)
 
  RE: ROM Firmware size limit? Firmdl bug?
 
(...) The limit is in the checksum routine built into the RCX - it only does a sum up to 0xCC00! So you may need to fiddle with firmdl to allow a larger SREC image, but only checksum up to 0xcc00. Hope this helps. Ralph Hempel (24 years ago, 9-Mar-01, to lugnet.robotics.rcx.legos)
 
  ROM Firmware size limit? Firmdl bug?
 
Hi! I'm using legOS 0.2.4 on Cygwin, and since memory is tight, I thought I'd try statically compiling my program to an .srec file, and using firmdl3 to download it, since I can do without the keys,conio,task, and memory managment stuff. This works (...) (24 years ago, 9-Mar-01, to lugnet.robotics.rcx.legos)
 
  legOS papers?
 
The kernel documentation by Stig Nielsson references two papers that I have been unable to find by websearch: MK Christiansen, MH Pedersen, and T. Glaesner Solving the priority inversion problem in legos Technical Report, AUC, 2000 L Christensen, ST (...) (24 years ago, 8-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: compiling the kernel.
 
Hi Ciaran, Ciaran Jessup <ciaranjessup@myrealbox.com> wrote in message news:G9qF59.46r@lugnet.com... (...) came (...) No, it can't find genlds because it's not using the path - it's only looking in /legos/util/. This seems to indicate you haven't (...) (24 years ago, 5-Mar-01, to lugnet.robotics.rcx.legos)
 
  compiling the kernel.
 
hi, I'm trying to 'adjust' my kernel so it doesn't have sound support, or rotation sensor support, so I adjusted the config.h file, an went to legos root, make realclean; make .....and it came up with the following error (this is taken from a run (...) (24 years ago, 6-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Simple RCX-PC communication
 
Ciaran Jessup wrote [snipped]: (...) Thanks for the offer, but after posting my question I decided to have a go at writing my own java solution, and having done so, I also like mine. Looks like all those software reuse lectures I took were wasted on (...) (24 years ago, 4-Mar-01, to lugnet.robotics.rcx.legos)
 
  showing my ignorance of makefiles :)
 
Hi, once again a stupid problem :) .. I've just moved all my code over from procedural C , to nice object orientated C++ legos code... the problem is... how does one compile in more than one file, at the minute I get around it by including my files (...) (24 years ago, 5-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: MOC: Tower crane
 
Hi all I posted this everywhere else, then realised maybe some of you here might be interested. It's not a robot, but uses 2 RCXs running legOS as controllers. It's my first major project using legOS! Regards, ROSCO (...) (24 years ago, 3-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: A humble contribution to the community
 
(...) now I can just go straight to your page! Together with the Windows version by Rossz Vámos-Wentworth at (URL) (I still haven't got around to trying this Rossz), we can install easily on both platforms! (...) Aren't they always 8?) ROSCO (24 years ago, 3-Mar-01, to lugnet.robotics.rcx.legos)
 
  A humble contribution to the community
 
Having installed legOS on a couple of machines and always having trouble remembering the most basic of command i have made this page (URL) that i (and whoever else might need some help) can easily do it again. Considered that we might be having some (...) (24 years ago, 3-Mar-01, 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