|
Re: Sensor Wiring
ECHO & PING are for a different make/model of ultrasonic sensor.
The MaxBotix that came in the 2012 Kit has a couple of wiring options, the analog probably being the easiest.
In code it gets treated just like any other analog sensor.
Read the analog value, convert to inches.
It can also be wired for digital and plugged into the sidecar.
There are code examples for both analog and digital from the LV Start page under Support -> Find FRC Examples..., then Sensors->EZ1...
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 25-01-2012 at 11:34.
|