We have been trying to program the sensors available from FIRST Choice, namely the Photoelectric and Ultrasonic Proximity Sensors, both by Rockwell Automation. Which libraries should we use for these sensors?
Thanks!
BetaBlues
We have been trying to program the sensors available from FIRST Choice, namely the Photoelectric and Ultrasonic Proximity Sensors, both by Rockwell Automation. Which libraries should we use for these sensors?
Thanks!
BetaBlues
For the ultrasonic proximity sensor this might be what you are looking for: http://wpilib.screenstepslive.com/s/3120/m/7912/l/85774-measuring-robot-distance-to-a-surface-using-ultrasonic-sensors
For the photoelectric sensors I believe that you calibrate them to see a certain color and then they output a certain voltage if they the color and a certain voltage if they dont, so digital. Therefore, this may be of use: http://first.wpi.edu/FRC/roborio/release/docs/java/edu/wpi/first/wpilibj/DigitalInput.html
If you can get it working, please let me know because we are interested in using them also!
Oh, also if you scroll down a bit on this page: http://wpilib.screenstepslive.com/s/4485/m/13809/l/599709-switches-using-limit-switches-to-control-behavior
It will give an example on how to use a digital input. Also, please correct me if I am wrong about how the photoelectric sensor works!