WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::SharpIRSim Class Reference

Simulation class for Sharp IR sensors. More...

#include <wpi/simulation/SharpIRSim.hpp>

Public Member Functions

 SharpIRSim (const SharpIR &sharpIR)
 Constructor.
 SharpIRSim (int channel)
 Constructor.
void SetRange (wpi::units::meter_t range)
 Set the range returned by the distance sensor.

Detailed Description

Simulation class for Sharp IR sensors.

Constructor & Destructor Documentation

◆ SharpIRSim() [1/2]

wpi::SharpIRSim::SharpIRSim ( const SharpIR & sharpIR)
explicit

Constructor.

Parameters
sharpIRThe real sensor to simulate

◆ SharpIRSim() [2/2]

wpi::SharpIRSim::SharpIRSim ( int channel)
explicit

Constructor.

Parameters
channelAnalog channel for this sensor

Member Function Documentation

◆ SetRange()

void wpi::SharpIRSim::SetRange ( wpi::units::meter_t range)

Set the range returned by the distance sensor.

Parameters
rangerange of the target returned by the sensor

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