UltrasonicSim¶
- class wpilib.simulation.UltrasonicSim(gyro: wpilib._wpilib.Ultrasonic)¶
Bases:
pybind11_builtins.pybind11_object
Class to control a simulated ADXRS450 gyroscope.
Constructs from a ADXRS450_Gyro object.
- Parameters
gyro – ADXRS450_Gyro to simulate
- setRange(range: meters) None ¶
Sets the range measurement
- Parameters
range – The range
- setRangeValid(isValid: bool) None ¶
Sets if the range measurement is valid.
- Parameters
isValid – True if valid