To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 2553
2552  |  2554
Subject: 
Re: IR Port as Proximity detector.
Newsgroups: 
lugnet.robotics
Date: 
Fri, 8 Jan 1999 13:55:53 GMT
Viewed: 
1675 times
  
David Chen writes:

    SendMessage(level);

You are only making IR light with the transmitter, why do you send the value of
level?  Why not just a constant?



Message has 1 Reply:
  Re: IR Port as Proximity detector.
 
(...) Agreed, I could have sent OhFF or any number for that matter. Sending the read light level was a legacy of my early debugging code in which I was using RcxCC's live monitoring feature to see what values were being read to establish my (...) (26 years ago, 8-Jan-99, to lugnet.robotics)

Message is in Reply To:
  Re: IR Port as Proximity detector.
 
Oops, noticed a coding error, the line that says: level = Input(1); Should read: level = IN_2; For better readability. The original version works b/c IN_2 is #defined already as Input(1); but the latter is more readable. I have used this (...) (26 years ago, 8-Jan-99, to lugnet.robotics)

13 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
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
5 hours ago
Custom Search

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