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