tpbot2.get distance
Appearance
Measures the distance reported by the TPBot EDU ultrasonic sensor.
Function
Synopsis
tpbot2.get_distance()
Arguments
None.
Returns
The distance in millimeters, or nil if no value is available.
Measures the distance reported by the TPBot EDU ultrasonic sensor.
tpbot2.get_distance()
None.
The distance in millimeters, or nil if no value is available.