XRPRangefinder

class xrp.XRPRangefinder

Bases: pybind11_object

This class represents the ultrasonic rangefinder on an XRP robot.

getDistance() wpimath.units.meters

Get the measured distance in meters. Distance further than 4m will be reported as 4m.

Returns:

distance in meters