WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
frc::XRPRangefinder Class Reference

This class represents the ultrasonic rangefinder on an XRP robot. More...

#include <frc/xrp/XRPRangefinder.h>

Public Member Functions

units::meter_t GetDistance () const
 Get the measured distance in meters.
 

Detailed Description

This class represents the ultrasonic rangefinder on an XRP robot.

Member Function Documentation

◆ GetDistance()

units::meter_t frc::XRPRangefinder::GetDistance ( ) const

Get the measured distance in meters.

Distance further than 4m will be reported as 4m.

Returns
distance in meters

The documentation for this class was generated from the following file: