gp2y0a02-range-meter

xod/common-hardware/gp2y0a02-range-meter

Reads Sharp infrared range meter GP2Y0A02YK0F (the one with 20…150 cm range). Possible errors: — Invalid port
gp2y0a02-range-meter
@/gp2y0a02-range-meter
Deprecated: Use `xod-dev/sharp-irm/gp2y0a02-range-meter` instead
Reads Sharp infrared range meter GP2Y0A02YK0F (the one with 20…150 cm range). Possible errors: — Invalid port
UPDpulse
Triggers an update, i.e. reading values again.
PORTport
Board port number the sensor is connected to.
gp2y0a02-range-meter
UPD
PORT
Dm
DONE
DONEpulse
Fires when reading is done
Dmnumber
Measured distance in meters. Trustworthy only for distances in [0.3, 1.5] meters range. Returns wrong values if an object is too close to the sensor.