Package edu.wpi.first.wpilibj.simulation
Class UltrasonicSim
java.lang.Object
edu.wpi.first.wpilibj.simulation.UltrasonicSim
public class UltrasonicSim extends Object
Class to control a simulated
Ultrasonic
.-
Constructor Summary
Constructors Constructor Description UltrasonicSim(int ping, int echo)
Constructor.UltrasonicSim(Ultrasonic ultrasonic)
Constructor. -
Method Summary
Modifier and Type Method Description void
setRangeInches(double inches)
void
setRangeMeters(double meters)
void
setRangeValid(boolean valid)
-
Constructor Details
-
UltrasonicSim
Constructor.- Parameters:
ultrasonic
- The real ultrasonic to simulate
-
UltrasonicSim
Constructor.- Parameters:
ping
- unused.echo
- the ultrasonic's echo channel.
-
-
Method Details