Jump to content

tpbot2.get distance

From Compy Docs

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.

See Also