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 / *1194 (-20)
  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)
 
 
  Re: memory leak in string handling
 
Jamie Obrien <jamien@interworx.com.au> wrote: You can't do this: (...) You probably meant char *d2 = dest; like the original author wrote. Here also: (...) You probably meant return dest; like the original author wrote. -Kekoa (24 years ago, 20-Jun-00, to lugnet.robotics.rcx.legos)
 
  Re: memory leak in string handling
 
(...) I don't know of any leaks, but this line includes the terminating \0 in the output string: (...) Try the following instead: while (*d2) d2++; Presumably if you allocated a buffer of exactly the right size for a correct strcat, you code would (...) (24 years ago, 20-Jun-00, to lugnet.robotics.rcx.legos)
 
  (canceled)
 
 
  Re: memory leak in string handling
 
(...) But strcat isn't implemented in legOS is it? At least I had trouble finding it when I needed it to use in a random number generator. But this was in 0.2.3, so I don't know about 0.2.4. Tobias (24 years ago, 20-Jun-00, to lugnet.robotics.rcx.legos)
 
  (canceled)
 


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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