Simulation class for Sharp IR sensors.
More...
#include <frc/simulation/SharpIRSim.h>
Simulation class for Sharp IR sensors.
◆ SharpIRSim() [1/2]
frc::SharpIRSim::SharpIRSim |
( |
const SharpIR & | sharpIR | ) |
|
|
explicit |
Constructor.
- Parameters
-
sharpIR | The real sensor to simulate |
◆ SharpIRSim() [2/2]
frc::SharpIRSim::SharpIRSim |
( |
int | channel | ) |
|
|
explicit |
Constructor.
- Parameters
-
channel | Analog channel for this sensor |
◆ SetRange()
void frc::SharpIRSim::SetRange |
( |
units::centimeter_t | rng | ) |
|
Set the range returned by the distance sensor.
- Parameters
-
rng | range of the target returned by the sensor |
The documentation for this class was generated from the following file: