|
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.
|