Jump to content

tpbot.get distance

From Compy Docs

Measures the distance reported by the TPBot ultrasonic sensor.

Function

Synopsis

tpbot.get_distance()

Arguments

None.

Returns

The distance in millimeters, or nil if no value is available.

See Also