View Single Post
  #2   Spotlight this post!  
Unread 21-01-2004, 09:25
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: help w/ educontroller

Quote:
Originally Posted by jjv
Hi,
I'm in the process of getting the beacons up and running on the EduController.
I have one connected to PWM IN 1, and would like to put a IR detector on Digital In 1 to monitor it.
I would then like to have a debug that shows the status of this input.
All that I have tried has created errors though.

Any hints?
Use the beacon code and hook the IR sensor to Digital Input 6.
Add printf("%d",(int) rc_dig_in06); anywhere that gets executed regularly, like Process_Data_From_Local_IO. You'll see a stream of 1's when the beacon is off, and a mixture of 1's and 0's when the beacon is on.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-01-2004 at 09:28.