Class to control a simulated Ultrasonic
.
More...
#include <frc/simulation/UltrasonicSim.h>
Class to control a simulated Ultrasonic
.
◆ UltrasonicSim() [1/2]
frc::sim::UltrasonicSim::UltrasonicSim |
( |
const Ultrasonic & |
ultrasonic | ) |
|
|
explicit |
Constructor.
- Parameters
-
ultrasonic | The real ultrasonic to simulate |
◆ UltrasonicSim() [2/2]
frc::sim::UltrasonicSim::UltrasonicSim |
( |
int |
ping, |
|
|
int |
echo |
|
) |
| |
Constructor.
- Parameters
-
ping | unused. |
echo | the ultrasonic's echo channel. |
◆ SetRange()
void frc::sim::UltrasonicSim::SetRange |
( |
units::inch_t |
range | ) |
|
Sets the range measurement.
- Parameters
-
◆ SetRangeValid()
void frc::sim::UltrasonicSim::SetRangeValid |
( |
bool |
isValid | ) |
|
Sets if the range measurement is valid.
- Parameters
-
The documentation for this class was generated from the following file: