| | Re: multiplexor and legOS
|
|
(...) Not bad. But as you say, still vulnerable to the task switching problem. (...) Instead of resorting to that, maybe there is a way to freeze task switching during critical operations. When I owned and programmed the AmigaOS (don't laugh :), (...) (23 years ago, 5-Feb-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: multiplexor and legOS
|
|
(...) It looks like the semaphore task_sm should prevent another task from being scheduled if I hold it for the length of the train. I've now tried this as well as incresing the timeslice to 100ms. It looks better but still is not consistent. Since (...) (23 years ago, 5-Feb-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: multiplexor and legOS
|
|
Since I'm now fairly sure that i've got the timing taken care of I'm wondering if the power cycling that ds_handler does is somehow causing the problem? I thought I might take control of this stuff in my test code. I assume if I set the sensor for (...) (23 years ago, 5-Feb-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: multiplexor and legOS
|
|
Ok, my last port didn't make much sense let me try that again. for an active sensor ds_handler will periodically power the sensor off to read the value. The standard firmware does this to but at a different interval. I'm wondering if this is part of (...) (23 years ago, 5-Feb-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: multiplexor and legOS
|
|
Still no luck in getting the mux working properly. I tried making use of the code for turning sensors on and off but later realized that the ds_handler code would still be turning the sensor off as part of its normal operation. I think I'm going to (...) (23 years ago, 7-Feb-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: multiplexor and legOS
|
|
I'm happy to report that after writing the multiplexor driver at the kernel level it's working! I'll post a patch soon once I've got it cleaned up a little bit. It looks like the problem was with the legOS power/read cycle in ds_handler. Once I took (...) (23 years ago, 10-Feb-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: multiplexor and legOS
|
|
(...) Sort of. Try Sourceforge ((URL) is on the "Patches" page (just click on the "Submit New" link). Great Job!! I am looking forward to be able to use the multiplexer finally! I've successfully added the "priority interrupt" patch to legOS 0.2.5 (...) (23 years ago, 10-Feb-02, to lugnet.robotics.rcx.legos)
|
|
| | multiplexor patch posted
|
|
I've posted the multiplexor patch under the patches secetion of the legOS project at sourceforge. (URL) you can't follow that link just go to (URL) then follow the patches link and look for the multiplexor patch. If you improve upon it post the (...) (23 years ago, 10-Feb-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: multiplexor and legOS
|
|
I'm not sure if anyone is trying out my multiplexor patch, but thought I'd let you all know that I posted a new version which works better and solves some problems in the earlier revision. The patch is available in the legOS patch section on (...) (23 years ago, 17-Feb-02, to lugnet.robotics.rcx.legos)
|