| | Re: disable LNP
|
|
(...) Have the changes from the above thread been implemented in a release of BrickOS, yet? (reduced sensor sample rate) I need to D/L a new release, but I don't want to rush, because I know I'll have to make changes to some of my existing code. (...) (21 years ago, 10-Oct-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: disable LNP
|
|
(...) Steve, If no IR traffic (of any kind) is occurring, then there is very little overhead associated with LNP being active. In any event, this trivial amount of overhead (in systime.c) can't be disabled. What you really need to be concerned about (...) (21 years ago, 10-Oct-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Linked Lists in BrickOS
|
|
(...) Michael, This will save you a few keystrokes: pNext = 0; :-) Mark (21 years ago, 10-Oct-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Linked Lists in BrickOS
|
|
(...) Actually, it turned out that there was some leftover obj or mak files that were messing up the compiler. I purged the directory, and all was well. Thanks for the tip on tabbing. Just wanted to confirm that a BrickOS pointer is only 2 bytes... (...) (21 years ago, 10-Oct-03, to lugnet.robotics.rcx.legos)
|
|
| | 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: 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)
|
|
| | 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: 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: Lugnet news server help (sorry)
|
|
Thanks a lot. I must have missed that message while I was away. "Jeff Van Winden" <jvwinden@sympatico.ca> wrote in message news:HLztp7.o5@lugnet.com... (...) Express. (...) (21 years ago, 30-Sep-03, to lugnet.robotics.rcx.legos)
|
|
| | Simplifying Cygwin & brickOS/leJOS
|
|
I have been working on creating a single (large) installer for cygwin with everything you need to build brickOS (and leJOS as well). Download one large file (which is, unfortunately, 18.9 MB) and you are ready to go. I've tested it on W2K and it (...) (21 years ago, 29-Sep-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos, lugnet.robotics.rcx.java)
|
|
| | Re: Ultrasonic Sensor Without Use Of A Microcontroller
|
|
(...) Hi Vik, I saw that ckt Digram. Try powering that ckt with battery. and use RCX to only read the reading. since you may have spiks on your power line ( which will change your resonance frequency of 555). if that works use .1uF bypass cap as (...) (21 years ago, 29-Sep-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Lugnet news server help (sorry)
|
|
(...) I think you need to change your port # to 1119 now as per: (URL) VW (...) (21 years ago, 29-Sep-03, to lugnet.robotics.rcx.legos)
|
|
| | Lugnet news server help (sorry)
|
|
I am unable to connect to the Lugnet news server. I am using Outlook Express. Whenever I try to read a message I get the following error: "Unable to connect to server Configuration: Account: lugnet.com Server: lugnet.com Protocol: NNTP Port: 119" I (...) (21 years ago, 29-Sep-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: BrickOS = shoot self in head
|
|
(...) That is true. But a real geek also knows how to make things simple for the wanna-be-geeks. :-) John Hansen (21 years ago, 29-Sep-03, to lugnet.robotics.rcx.legos)
|