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 / *1219 (-40)
  Re: Persistent globals
 
(...) [snip great gobs of neat info] (...) Assuming it works, it helps a lot! Thanks much. -- "Do not go gentle into that good night. Rage, rage against the dying of the light." - Dylan Thomas Mike Ash - (URL), <mailto:mail@mikeash.com> (24 years ago, 17-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Persistent globals
 
(...) legOS 0.2.3 or 0.2.4 will load .strings and .rodata sections just like the .text section. With this you can achive persistent data by storing your variables into the .strings section. There are some nice features in gcc to help with this. Just (...) (24 years ago, 16-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Persistent globals
 
(...) It is correct. Everytime you reload a program it re-initializes everything, including a specific program's memory, so all that kind of information is lost. I'm not sure that there is a way to duplicate that behavior, as things stand. The only (...) (24 years ago, 16-Jul-00, to lugnet.robotics.rcx.legos)
 
  Persistent globals
 
Whew, I've been writing here a lot. I guess now that things work, it's a lot more enjoyable! :) Anyway, here goes.... I recall that with older versions of legOS, global variables were only initialized once, when the program was downloaded. (...) (24 years ago, 16-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: LegOS + Lego Remote
 
Chris- Do you have a patch for that? I'd love to test this myself (not sure if I can- MB crash last week has me still under pretty limited capacity) and if it works reliably, integrate it into the actual source tree... Luis (...) ---...--- (...) (24 years ago, 15-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: LegOS + Lego Remote
 
um, never mind... i just set parity to odd for both the LegOS kernel and compiled a new version of dll.exe with odd parity, and it worked fine... have a callback that works for the remote in unofficial 0.2.4 now... a bit unexpected though, with the (...) (24 years ago, 15-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Strange crash (and possible fix)
 
(...) Well, it'd be nice to know, certainly, but I'm not going to look into it too hard. The fact is that it works wonderfully now. I compiled and downlaoded probably twenty versions of my program over the past two hours or so, and not a single one (...) (24 years ago, 14-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Strange crash (and possible fix)
 
Mike- I wish I knew. I have frequently seen the same kinds of "random" changes produce better results. For example, I had one piece of code that used a switch statement- 19 statements in all. I added a 20th and poof... it froze. I have no idea what (...) (24 years ago, 14-Jul-00, to lugnet.robotics.rcx.legos)
 
  Strange crash (and possible fix)
 
I had a strange experience today. My program likes to crash a lot. I accept this as a fact of life now; part of it is the difficulty in debugging it, and part seems to be the beta-ness of legOS. However, today, I tracked down one particularly evil (...) (24 years ago, 14-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: LugNet links
 
Some time ago I asked the powers that be at lugnet to change the links, and never heard a word from them about it. Maybe it is time to hassle them about it again. Luis (...) ---...--- "Summertime... and the living is easy... fish are jumping and the (...) (24 years ago, 12-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: LinuxPPC success
 
(...) I would like to add it to the HOWTO, or at least to someplace where it is widely publicly available- probably with the instructions at (URL) On another note, where does one find the LNP stuff these days? Arthurdent (...) /Everything/ is a bad (...) (24 years ago, 12-Jul-00, to lugnet.robotics.rcx.legos)
 
  LinuxPPC success
 
Well, Dave's advice worked like a charm. Thanks, Dave! It seems like this would be a good thing to add to the HOWTO, although who knows how many other people want to use legOS on LinuxPPC. On another note, where does one find the LNP stuff these (...) (24 years ago, 12-Jul-00, to lugnet.robotics.rcx.legos)
 
  LugNet links
 
Hey, everyone. I was just checking out the lugnet page, and was thinking it might be a good idea to update the LegOS links. Perhaps include a link to SourceForge, and fix the HOWTO link. What do you think? And how does one go about this? ROSCO (24 years ago, 12-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: LegOS on LinuxPPC
 
(...) The problem is due to a bug in gcc 2.95. The assembly version of memcpy fixes the LegOS kernel, but all your user programs are subject to the same bug. Until it's fixed in gcc, you're stuck with egcs. Regards ROSCO (24 years ago, 12-Jul-00, to lugnet.robotics.rcx.legos)
 
  LegOS + Lego Remote
 
Hi All, I've tried patching LegOS 0.2.3 lnp_integrity_byte's state machine to capture the transmissions by the Lego remote. The problem is, I only get a response when I press some combinations of two remote buttons at a time, other combinations and (...) (24 years ago, 11-Jul-00, to lugnet.robotics.rcx.legos)
 
  dll 0.2.3 fails on SGI
 
Hello all, My first time on this list... I've been trying to get LegOS running in my recently aquired RCX 1.0. I created an egcs cross-compiler for Solaris. I used this to compile the kernel. The IR tower is connected to an SGI (an O^2 running IRIX (...) (24 years ago, 11-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: LegOS on LinuxPPC
 
(...) Ah, excellent. I saw this post when you posted it, but didn't think about it much at the time. I'll give this a shot and report back. Thanks very much. -- "Do not go gentle into that good night. Rage, rage against the dying of the light." - (...) (24 years ago, 11-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: LegOS on LinuxPPC
 
In article (...) I have had better luck with egcs-1.1.2 rather than gcc 2.95.2. I've heard that there's a problem with the way gcc 2.95.2 generates code for memcpy. I've also heard that the fix is to use an assembly version of memcpy instead of (...) (24 years ago, 11-Jul-00, to lugnet.robotics.rcx.legos)
 
  LinuxPPC gcc errors
 
Ok, I have some error messages here. I'm following the exact instructions in the HOWTO, except for using gcc 2.95.2 instead of egcs 1.1.2. I recall trying egcs with similar results. The make proceeds fine for a while. Then I get this message, and (...) (24 years ago, 11-Jul-00, to lugnet.robotics.rcx.legos)
 
  LegOS on LinuxPPC
 
I recall somebody writing to this list about a problem with LegOS under LinuxPPC, and the message seemed to imply that things were mostly happy. I can't make the compiler compile. I'm using gcc 2.95.2. The make proceeds for a good while, then I get (...) (24 years ago, 10-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: compiling
 
(...) Never mind everyone got it to work. Patrick (24 years ago, 7-Jul-00, to lugnet.robotics.rcx.legos)
 
  compiling
 
I am new to this message board so I am sorry if this topic has already been covered. I have been tring to make, but have been unsuccessful. The OS that I am currently trying to use is legOS 2.3. I keep recieving the error message: h8300-hms-gcc.exe: (...) (24 years ago, 6-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: legOS battery life code
 
Sorry! I forgot to post the code. Here it is: #include <dsensor.h> #include <dlcd.h> #include <conio.h> int get_battery_mv() { long b; int mv; b = BATTERY; b = ds_scale(b) * 0xABD4L; mv = b / 0x618L; return mv; } int main(int ac, char **av) { int b; (...) (24 years ago, 5-Jul-00, to lugnet.robotics.rcx.legos)
 
  legOS battery life code
 
Hello, I recently received some code in the mail that when compiled and uploaded to the RCX is supposed to give you the battery life. But when I go to compile it, legOS/util/makelx gives me the following error message: single byte different at (...) (24 years ago, 5-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: rotation sensor problem, again...
 
I had the same problem and I solved it with a msleep(50). msleep(10) is not enough. (...) (24 years ago, 3-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: battery life indicator
 
if((BATTERY/0x0016)<700) dlcd_show(LCD_BATTERY_X); I always put this line on my programs. BATTERY/0x0016 gives the value in V*100 of all batteries open circuit voltage. <700 is the limit for rotation sensors to work (all the other sensors have (...) (24 years ago, 3-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: interrupts for buttons
 
Sorry about the long delay, I've been away. Demo.c is inaccessable because it was written for 0.1.7 and I've not yet had the time to update it. Unfortunately, this is going to be a semi-major task and so will probably be one of the last things to (...) (24 years ago, 2-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: java/RCX combo
 
I'm currently trying to recreate the JavaOne Mindstorms demo which Sun used in 1999 to show off its Jini(tm) capabilities. Will let you know once I succeed - at the moment the problems are more related to Java(tm) than anything else. -thomas (24 years ago, 28-Jun-00, to lugnet.robotics.rcx.legos, lugnet.robotics.rcx.java)
 
  Re: Making LegOS under Win98
 
Hi All I was wondering if anyone has some sample LNP applications posted anywhere, or if there is any sample code and/or docs online. I'm having abi tof difficulty diving into it, so to speak ;-) Colin Ryan (24 years ago, 28-Jun-00, to lugnet.robotics.rcx.legos)
 
  interrupts for buttons
 
I'm trying to connect the Run button to an "event function" so that I can shut down my system nice and clean instead of the evil kill that is happening right now. It seems I can't access demo.c that is in the HOWTO, so I'm not sure how I'd do this. (...) (24 years ago, 27-Jun-00, to lugnet.robotics.rcx.legos)
 
  Re: memory leak in string handling
 
And the problem is solved. Perhaps my pains can be used for something good anyway. Perhaps the people who suggested their beautiful strcat-functions can have (at least the prettiest one) them included in a future release. And if you're wondering how (...) (24 years ago, 26-Jun-00, to lugnet.robotics.rcx.legos)
 
  Re: memory leak in string handling
 
Thank you everyone who helped out. The strcat function works like a charm. Unfortunately, the memory leak is still there. I'm beginning to think it might be that the strings are never deallocated at all. I'm going to have to check so that the (...) (24 years ago, 26-Jun-00, to lugnet.robotics.rcx.legos)
 
  Re: Making LegOS under Win98
 
I did not have the lnp.c file, so I copied it to the util/dll-src directory. It did not change anything. Then I downloaded and installed the CVS version. It still gave the same errors. This is exactly what errors were specified: (...) (24 years ago, 24-Jun-00, to lugnet.robotics.rcx.legos)
 
  Re: Making LegOS under Win98
 
Hmm. OK, well, if you look in ../Makefile.user (which is included from demo/Makefile) on the very last line you'll see this: %.lx: %.ds1 %.ds2 $(MAKELX) $*.ds1 $*.ds2 $*.lx That is a rule to make all .lx files. So, the rule is there and should be (...) (24 years ago, 24-Jun-00, to lugnet.robotics.rcx.legos)
 
  Re: Making LegOS under Win98
 
Andy- 3 Questions: 1) What version are you running? 2) Where/when did you get the file from? 3) Can I see the Makefile in question? (should be legOS/demo/Makefile, also legOS/Makefile.user) Neither or these have been changed in more than two months (...) (24 years ago, 24-Jun-00, to lugnet.robotics.rcx.legos)
 
  Making LegOS under Win98
 
Hello, I am trying to build LegOS 0.2.4 under Win98, using Paolo Masetti's instructions for cygwin. When I MAKE, it says that there are no rules to compile helloworld.lx needed by all. I looked in the makefile, and could not find a rule. I also (...) (24 years ago, 24-Jun-00, to lugnet.robotics.rcx.legos)
 
  Re: New to legOS, can you get it seperately?
 
(...) It is free, but it won't do you much good without an RCX- to the best of my knowledge it won't run on anything else. (...) It's not really another type of C- just a different set of libraries. Other than that, same old C. -Luis (...) ---...--- (...) (24 years ago, 21-Jun-00, to lugnet.robotics.rcx.legos)
 
  (canceled)
 
 
  Re: SDL and legOS (was: memory left)
 
Hi guys I found this tutorial about SDL. (...) (24 years ago, 20-Jun-00, to lugnet.robotics.rcx.legos)
 
  (canceled)
 


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

Redisplay Messages:  All | Compact

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