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 / *7985 (-20)
  disable LNP
 
I need to write a program that can send and receive messages, but there are times when the program is running, that I don't want to waste processor time watching for messages. Is it possible to switch LNP on and off, while a program is running? I (...) (21 years ago, 9-Oct-03, to lugnet.robotics.rcx.legos)
 
  Re: Linked Lists in BrickOS
 
(...) If you install cygwin and the cross compilers using my pre-packaged installer ((URL) and my pre-packaged and pre-built brickOS/leJOS installer ((URL) then you should be able to write your brickOS programs using GNU Pascal. (see below) (...) I (...) (21 years ago, 9-Oct-03, to lugnet.robotics.rcx.legos)
 
  Re: leJOS auto power-off
 
(...) your programs, lest you forget to turn off the RCX while a program is running and waste a set of batteries ... Like while(System.current...meMillis() < 600000) { // 10 minutes timeout ... } as a main loop instead of while(true){...} Jürgen (21 years ago, 9-Oct-03, to lugnet.robotics.rcx.java)
 
  Re: Linked Lists in BrickOS
 
(...) Yeah, this was the problem. It hadn't occurred to me that BricxCC wasn't saving the file before making. Whoops. (...) Yes, tremendously (...) It looks like this was the problem line. I didn't know the syntax for a pointer to nothing. (in (...) (21 years ago, 9-Oct-03, to lugnet.robotics.rcx.legos)
 
  Re: Linked Lists in BrickOS
 
(...) BricxCC can't know for sure what compiler to use unless it can tell what type of file you are editing. It figures this out using the file extension. In order to compile C++ and C code, BricxCC needs the file to have a .cpp or .c extension. (...) (21 years ago, 8-Oct-03, to lugnet.robotics.rcx.legos)
 
  Re: INT_MAX in BrickOS
 
(...) Yes, very much, thank you. That explains why I was getting odd results when I set an int to 65535. Now, I know what to do. Thanks Steve (21 years ago, 8-Oct-03, to lugnet.robotics.rcx.legos)
 
  Re: INT_MAX in BrickOS
 
(...) Hi Steve, Here's a handy table: TYPE BITS MIN MAX ===...=== char 8 0 255 unsigned char 8 0 255 signed char 8 -128 127 int 16 -32768 32767 unsigned int 16 0 65535 unsigned 16 0 65535 long 32 -2147483648 2147483647 unsigned long 32 0 4294967295 (...) (21 years ago, 8-Oct-03, to lugnet.robotics.rcx.legos)
 
  Re: leJOS auto power-off
 
Works for me! Thanks for the pointer (I think I searched everywhere *but* lugNET :O). (...) (21 years ago, 8-Oct-03, to lugnet.robotics.rcx.java)
 
  Re: RCX Communications problems
 
Hi everyone, I did take a look at LNP, but I need to be sure that the RCX received the packet. As far as I Know, LNP is an UDP kind of communication. LLC is more reliable way to communicate as it uses ACK. I’m thinking know in recompile the RCXPort (...) (21 years ago, 7-Oct-03, to lugnet.robotics.rcx.java)
 
  INT_MAX in BrickOS
 
What's the max value for an INT in BrickOS? Is it +/- 2,147,483,647? (21 years ago, 8-Oct-03, to lugnet.robotics.rcx.legos)
 
  Re: leJOS auto power-off
 
(...) It can't be done. (URL) Hansen (URL) (21 years ago, 8-Oct-03, to lugnet.robotics.rcx.java)
 
  leJOS auto power-off
 
How does one disable the auto power-off feature in leJOS? I've scanned the API and can't find it. Thanks. -Brian (21 years ago, 8-Oct-03, to lugnet.robotics.rcx.java)
 
  Re: Linked Lists in BrickOS
 
(...) Also, add some semicolons to the above like so: class list { private: Node *p_head; }; Mark (21 years ago, 7-Oct-03, to lugnet.robotics.rcx.legos)
 
  Re: Linked Lists in BrickOS
 
In lugnet.robotics.rcx.legos, Michael Purvis wrote: <snipped some, added some filler> (...) In order for the above to work.... (...) wouldn't the above need to be uncommented ??? I am not seeing where else you declared pData... but I could be wrong. (...) (21 years ago, 7-Oct-03, to lugnet.robotics.rcx.legos)
 
  Linked Lists in BrickOS
 
Thanks to all that assisted me in getting set up. It turned out to be missing Cygwin packages. My bad. Two problems. Firstly, BrixCC needs to be restarted to compile 'new' code. Is there a way to correct this problem? Also, I'm having trouble (...) (21 years ago, 7-Oct-03, to lugnet.robotics.rcx.legos)
 
  Re: write files
 
(...) I'm glad that you (and others) have found NQC to be useful. Most people don't use NQC for anything beyond compiling and downloading programs, but it has lots of options for interacting with the RCX (such as -datalog, -run, and -raw). Type "nqc (...) (21 years ago, 3-Oct-03, to lugnet.robotics.rcx.nqc)
 
  Re: More than 1 integer in a data packet?
 
(...) I'm not a leJOS expert by any stretch of the imagination. But I think I can help. (...) That is not a correct understanding of the rcxcomm package API. The RCXOutputStream class, for example, which descends from java.io.OutputStream inherits (...) (21 years ago, 2-Oct-03, to lugnet.robotics.rcx.java)
 
  Re: write files2
 
(...) Markus, I second Chris' request that you explain more fully what you are trying to do exactly. Why do you need your output formatted as result1;result2;result3..., for instance? John Hansen (21 years ago, 2-Oct-03, to lugnet.robotics.rcx.nqc)
 
  Re: write files2
 
(...) You probably do not want to use the datalog if you just want to get the latest lightsensor reading every two seconds. Here's a way to do it if you can use JavaScript and if you have BricxCC installed (since BricxCC implements an out-of-process (...) (21 years ago, 2-Oct-03, to lugnet.robotics.rcx.nqc)
 
  Re: write files2
 
(...) By "connected" do you mean always within range of the infrared tower? (...) How long do you need to do this? Do you need to access the text file while the robot is running, or do you only plan to use the data after the experiment is over? (...) (21 years ago, 2-Oct-03, to lugnet.robotics.rcx.nqc)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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