WPILibC++ 2025.0.0-alpha-1-10-g1ccd8d1
frc::SharpIRSim Class Reference

Simulation class for Sharp IR sensors. More...

#include <frc/simulation/SharpIRSim.h>

Public Member Functions

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

Detailed Description

Simulation class for Sharp IR sensors.

Constructor & Destructor Documentation

◆ SharpIRSim() [1/2]

frc::SharpIRSim::SharpIRSim ( const SharpIR sharpIR)
explicit

Constructor.

Parameters
sharpIRThe real sensor to simulate

◆ SharpIRSim() [2/2]

frc::SharpIRSim::SharpIRSim ( int  channel)
explicit

Constructor.

Parameters
channelAnalog channel for this sensor

Member Function Documentation

◆ SetRange()

void frc::SharpIRSim::SetRange ( units::centimeter_t  rng)

Set the range returned by the distance sensor.

Parameters
rngrange of the target returned by the sensor

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