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 / *1764 (-40)
  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)
 
  Re: almost made it, but need help..again :)
 
(...) Your problem is not the .so file (hasn't got to linking stage yet), but the .h file. You need to do: gcc -I/path/of/lnplib/includes name.c -o name or put the full path to lnplib.h in the include statement in name.c HTH ROSCO (24 years ago, 2-Mar-01, to lugnet.robotics.rcx.legos)
 
  almost made it, but need help..again :)
 
heh guys, im back..again :) have downloaded and installed lnpd. i have: export LD_LIBRARY_PATH=$LD_...lnp/liblnp so that my PC programs in ~/legOS/host/lnpd+li...plications can find the liblnp.so.x file. but i allways get an error when i try to gcc (...) (24 years ago, 2-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: kernel hacking in lnp.c (problem)
 
(...) The best way to do this kind of thing is to save the info you want to display in a variable or something, set a flag saying somethings there, and let another task display the data & reset the flag. You can see a simple implementation of this (...) (24 years ago, 1-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: kernel hacking in lnp.c (problem)
 
(...) Posting your code would help a lot :-). lnp_receive_packet() is called after the integrity layer has verified the checksum from an interrupt handler. So your code should be short e never call functions that wait or may cause a task switch. dll (...) (24 years ago, 1-Mar-01, to lugnet.robotics.rcx.legos)
 
  kernel hacking in lnp.c (problem)
 
hi everybody. in /kernel/lnp.c there is a function called lnp_receive_packet. here im trying to insert a function that will display whatever came in the data field when lnp_receive_packet was called. (interested in seeing everything, including (...) (24 years ago, 1-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Simple RCX-PC communication
 
I to am working on a final year cs project and had exactly the same problem :) - I solved it by using the cygwin on win2k solution..very good :) And I wrote a small java package to deal with all the lnp stuff, so I could use java, now this will work (...) (24 years ago, 1-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Cygwin question(s)
 
(...) Unfortunately not. :\ (...) Depends on how much you want to learn. If you really, really want to learn Unix, I strongly recommend the encyclopedic "Unix Secrets" by James Armstrong. Well written, great examples, and covers everything you might (...) (24 years ago, 28-Feb-01, to lugnet.robotics.rcx.legos)
 
  Re: Simple RCX-PC communication
 
(...) I guess I ought to add that WinLNP isn't any good to me since I want (as far as possible) to use the same code on both linux and windows, and besides I don't have any suitable windows dev tools. Kieran Elby (24 years ago, 28-Feb-01, to lugnet.robotics.rcx.legos)
 
  Simple RCX-PC communication
 
Hi! I'm working on a final year CS project which involves getting a lego robot to explore and map its maze-like environment, locate start and finish markers, then run between them. This is working pretty well, but I'd like to be able to download the (...) (24 years ago, 28-Feb-01, to lugnet.robotics.rcx.legos)
 
  Re: Cygwin question(s)
 
Hi (...) Yep, that works ;-) (...) Yep, that also works ;-)) Getting to grips with Unix by yourself is no easy task. Can you recommend any good sites or books to save me pestering people?? thanks mike (24 years ago, 28-Feb-01, to lugnet.robotics.rcx.legos)
 
  Re: Cygwin question(s)
 
I've used Cygwin some time ago, so my knowledge is not the best. Here are some thoughts based on my experience with Linux. Hope they help. (...) bash uses the backslash (\) as an escape-character. On Linux mount e:\ /e is equivalent to mount "e: /e" (...) (24 years ago, 28-Feb-01, to lugnet.robotics.rcx.legos)
 
  problems installing LNP
 
have downloaded dllx.tgz, lnpd+liblnp.tgz and lnpd.static have unpacked them into the $HOME/legos/host directory in lnpd+liblnp i have: make realclean make depend make all good so far in dllx i have: fixed the Makefile so that: (...) (24 years ago, 28-Feb-01, to lugnet.robotics.rcx.legos)
 
  Cygwin question(s)
 
Hi I have some problems with Cygwin B20. This may be a bit off topic, I'm not sure, but if I am can someone please point me in the right direction. I have legOS set up and running fine as directed in the howto, but I am having some problems with (...) (24 years ago, 27-Feb-01, to lugnet.robotics.rcx.legos)
 
  Remote control patch
 
Hi all. I've uploaded Chris Aquila's remote control patch to Sourceforge. I've included a README, and a user-space module to make using it a bit easier. Just look under the patches section in the legOS project. Regards, ROSCO (24 years ago, 25-Feb-01, to lugnet.robotics.rcx.legos)
 
  Re: multiple "execi" with different priorities
 
(...) have (...) Yes, I actually went & checked after I'd posted. Maybe I should've checked before 8?) Anyway, Stig Nielsson emailed me the following, which explains it a lot better, and will probably be useful for Thanasis to work out the original (...) (24 years ago, 23-Feb-01, to lugnet.robotics.rcx.legos)
 
  Re: multiple "execi" with different priorities
 
(...) Actually legOS multitasking is preemptive :-) bye Bernardo (24 years ago, 22-Feb-01, to lugnet.robotics.rcx.legos)
 
  Re: multiple "execi" with different priorities
 
(...) of (...) The call looks fine, but as Bernado said, you have to make sure that higher priority tasks relinquish control regularly. IIRC all tasks of a given priority must get a slice before any lower priority tasks get any slice. And remember (...) (24 years ago, 21-Feb-01, to lugnet.robotics.rcx.legos)
 
  Re: multiple "execi" with different priorities
 
(...) That line seems ok to me. Setting priority for a task above 10 (normal priority) may cause starvation to other tasks. This depend on what your function process() does. If it never waits (using calls like wait_event(), sleep(), sem_wait()...) (...) (24 years ago, 21-Feb-01, to lugnet.robotics.rcx.legos)
 
  multiple "execi" with different priorities
 
Hi, I am trying to run three different tasks, with the "execi" command. When all of the have the same priority=10, everything works ok. When I change the priority in one of them priority=11 or 12, then everything seems to go much slower, and (...) (24 years ago, 21-Feb-01, to lugnet.robotics.rcx.legos)
 
  Re: problems installing binutils 2.9.1
 
Close. Its in glibc-devel. On my (originally RH 6.0) box its glibc-devel-2.1.1-6.rpm, your version number may be different. Regards, ROSCO (...) (24 years ago, 21-Feb-01, to lugnet.robotics.rcx.legos)


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

Redisplay Messages:  All | Compact

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