View Single Post
  #5   Spotlight this post!  
Unread 16-01-2008, 16:30
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: How to wire the IR on the RC?

That's what you usually see when you use a separate battery to power the IR board. With two different batteries the grounds are not common and the signal pins stay high.

You could get around it with a check of all the pins, such as:
Code:
if (rc_dig_in13 == 0 || rc_dig_in14 == 0 || rc_dig_in15 == 0 || rc_dig_in16 == 0)
{
    if (rc_dig_in13 == 1)
    {
        //Drive away
    }
}
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 16-01-2008 at 16:34.