| | LNP checksum optimizations
|
|
In a previous post I said that some optimizations can be made in LNP. Now I have the patch ready and uploaded it on sourceforge. Sadly I made it against a custom version of the kernel, so it may need a manual intervention to apply (fuzzyness (...) (24 years ago, 31-Jan-01, to lugnet.robotics.rcx.legos)
|
|
| | Error in program
|
|
Hi, can somebody tell me why this little program doesn't give any output? It just keeps running and doing nothing... int Edges[7], CounterLength=0; task main(){ SetSensor (SENSOR_2, SENSOR_TOUCH); until(CounterLength == 8){ Edges[CounterLength] = (...) (24 years ago, 31-Jan-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Just some really basic questions...
|
|
(...) program (...) Dean, you are right and meanwhile I could test it. However, the definition for the global variables must be in the SAME ORDER order for both of the programs. If you would do this: SLOT 1: int testvar1 = 1; int testvar2 = 2; int (...) (24 years ago, 31-Jan-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Power Down for RCX
|
|
(...) There are two commands (available on the command line or within a program). The first sets the "sleep time", which is the number of minutes before the RCX will turn itself off (0 means never sleep). The second requests that the RCX sleep (...) (24 years ago, 31-Jan-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Just some really basic questions...
|
|
(...) Your example did as I have stated. Global variables are global across all program slots. Dean -- Coin-Op's For Sale!: (URL) Lego Workshop: (URL) Lego Club: (URL) (24 years ago, 30-Jan-01, to lugnet.robotics.rcx.nqc)
|