View Single Post
  #2   Spotlight this post!  
Unread 08-04-2010, 08:33
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: INFRARED SENSORS

"Programming" an input is just a matter of reading its value and testing it to decide what the program should do. What do you want the program to do?

What output does the sensor provide? If it's the equivalent of a switch, it goes to a digital input. If it's a varying voltage related to the distance from the sensor to the target, it goes to an analog input.

You can do anything in the autonomous routine that you would do in teleoperated mode.

PWM pins on the Digital Sidecar are outputs only. They can't read sensors.
Reply With Quote