To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1802
1801  |  1803
Subject: 
Re: Running IR in the background
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 27 Mar 2001 15:42:45 GMT
Viewed: 
1482 times
  
On Tue, 27 Mar 2001, Clayton Epps wrote:

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.

Commentary below.

In lugnet.robotics.rcx.legos, Hannes Naudé writes:
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 all the processor time.
I've been using lnp_logical_write() for all my IR up to now ,but it is a
blocking function so control only returns after the IR is allready off again.

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.

--
"From now on, we live in a world where man has walked on the moon.
And it's not a miracle, we just decided to go." -- Jim Lovell

Mike Ash - <http://www.mikeash.com/>, <mailto:mail@mikeash.com>



Message has 1 Reply:
  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)

Message is in Reply To:
  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)

6 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR