| | Want to Buy a RCX USB IR-Tower
|
|
Guys, Just retrieved my (dusted) RCX kit & a few spybots, when I move things around, unfortunately, my notebook does not have serial port any more. Moreover, the CD does not support XP either. Do you aware if any online shop will sell RCX USB (...) (17 years ago, 22-Jan-08, to lugnet.robotics.rcx.legos)
|
|
| | Re: Possible bug? Simple light sensor condition checking.
|
|
(...) It looks to me like the c compiler optimized the assignment to the variable away, since there is no external method call (shutdown_requested() is just a macro). (...) You should make this volatile int offonpad = 0; (...) You should also put an (...) (17 years ago, 16-Jul-07, to lugnet.robotics.rcx.legos)
|
|
| | Re: Possible bug? Simple light sensor condition checking.
|
|
I use BrickOS (LegOS) but I'm not expert in the inner workings. The code you have here appears fine to me. So, it may be a bug in BrickOS, or a problem elsewhere in your code. I will say I've ran into some interesting things when using tasks. (...) (17 years ago, 16-Jul-07, to lugnet.robotics.rcx.legos)
|
|
| | Possible bug? Simple light sensor condition checking.
|
|
I tried my own skill on writing a program for the included lego test pad (RIS 2.0), and I discovered something weird. The following code does set the conditions right, but the following code doesn't set the conditions right if I comment out the (...) (17 years ago, 16-Jul-07, to lugnet.robotics.rcx.legos)
|
|
| | Re: Shutdown/Off while program running crashes BrickOS
|
|
(...) Yes, that should be the latest version. (...) That is correct. You shouldn't need to do anything else. At one point, I made some changes to the firmware so the program could also access the run button. But, normally all that is handled in the (...) (17 years ago, 17-Jun-07, to lugnet.robotics.rcx.legos)
|
|
| | Re: Shutdown/Off while program running crashes BrickOS
|
|
(...) I'm using what appears to be called BrickOS 0.9.0. It was installed using John Hansen's simplified installation from his BricxCC sourceforge site. I was under the impression that on later versions of BrickOS, like what I am using, the firmware (...) (17 years ago, 17-Jun-07, to lugnet.robotics.rcx.legos)
|
|
| | Re: Shutdown/Off while program running crashes BrickOS
|
|
(...) Gus, It sounds like the code is testing for pressing the run button, but not pressing the power button. I would think testing for shutdown would be good enough, but who knows... :) What version of BrickOS are you using? I'd be glad to take a (...) (17 years ago, 17-Jun-07, to lugnet.robotics.rcx.legos)
|
|
| | Shutdown/Off while program running crashes BrickOS
|
|
I have a big and somewhat complicated BrickOS program that I believe is reasonably well behaved. All my loops monitor shutdown_requested and I have tested stopping the program with the Run button while the program is in various states and it always (...) (17 years ago, 16-Jun-07, to lugnet.robotics.rcx.legos)
|
|
| | Re: Getting patches integrated into the brickos?
|
|
(...) As far as I know, all the sourceforge web pages are held in the CVS repository, as are the sources. Only people with developer permission on the project have commit access to CVS - you have to contact the project admins to request that (...) (18 years ago, 25-Apr-07, to lugnet.robotics.rcx.legos)
|
|
| | Getting patches integrated into the brickos?
|
|
I've been trying to build a cross compiler and brick-os on my machine for a day now and well, what can I say except that all the how-to's and instructions for building brick-os seem to be either wrong, bad or out of date. (e.g. they talk about very (...) (18 years ago, 23-Apr-07, to lugnet.robotics.rcx.legos)
|