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 / 1808
1807  |  1809
Subject: 
Re: Running IR in the background
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 28 Mar 2001 07:03:05 GMT
Viewed: 
1780 times
  
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 active sensor does a poor job of detecting obstacles
and is too sensitive to changes in ambient light levels.  I noticed using
ds_passive the values were much more stable (around 77-78) in almost any
normal lighting environment.  Even as I lowered the lights in the room the
values still seemed to stay around 77-78.  This may have something to do
with Marcus Noga processed light level routine in dsensor.h.  I thought at
first it just changes hex into dec, but apparently it changes  the entire
scaling and range of the light values.  It may be possible to get more
fidelity out of the original raw values...

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 lnp_logical_write (getting around the blocking part very
elegantly).

See http://news.lugnet.com/robotics/rcx/legos/?n=1783

Our robot is a bit wide (built on the base robot with threads and not wheels),
and uses bumpers to find things outside its field of vision.  The
obstactle-detection distance varies with the lights somewhat, but in general,
we do at about 10 to 20 cm, i.e. 4 to 8 inches.  The system is stable, working
fine when crawling under tables and into dark corners.

/jakob



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

6 Messages in This Thread:


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

Custom Search

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