| | Running IR in the background
|
|
Hi all Is there any way to switch the IR LED on and leave it on. (as a kind of a headlight for the light sensor.) Alternatively, what is the easiest way to just send a comtinuous string of 0's so it's on at least a lot of the time, without taking (...) (25 years ago, 23-Mar-00, to lugnet.robotics.rcx.legos)
|
|
| | Re: Running IR in the background
|
|
Hannes, Did you ever get any help with your question (below)? I'm trying to use the IR port on RCX along with light sensor (passive) as collision detection device. Having the same problems you're having. Clayton (...) (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
|
|
| | Re: Running IR in the background
|
|
(...) Huge coincidence that your message should be the first I see after not having read the newsgroup for almost a year. No, as far as I can remember I never got an answer. I am using mindstorms for my final project after not having a chance to (...) (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
|
|
| | Re: Running IR in the background
|
|
(...) Commentary below. (...) I must have missed this one the first time around. lnp_logical_write() will block, but it should only block the thread it's called from. Put your send-zero loop in a separate thread and I think you should be set. (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
|
|
| | Re: Running IR in the background
|
|
Hannes, I got it to work last night. I'm modifying Markus Noga rover.c code (included when you download legos files) to include support for IR port and (passive) light sensor. Great code to look at if you're just learning C/C++. Basically, the (...) (24 years ago, 27-Mar-01, to lugnet.robotics.rcx.legos)
|
|
| | Re: Running IR in the background
|
|
(...) Congratulations! Could you post your source code here, to compare with the solution that we previously submitted to an almost identical question? We use an active light sensor reading in one taks, with a different task bangin zeroes using (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
|