Package edu.wpi.first.wpilibj.simulation
Class SharpIRSim
java.lang.Object
edu.wpi.first.wpilibj.simulation.SharpIRSim
Simulation class for Sharp IR sensors.
-
Constructor Summary
ConstructorsConstructorDescriptionSharpIRSim
(int channel) Constructor.SharpIRSim
(SharpIR sharpIR) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setRange
(double range) Set the range in meters returned by the distance sensor.
-
Constructor Details
-
SharpIRSim
Constructor.- Parameters:
sharpIR
- The real sensor to simulate
-
SharpIRSim
Constructor.- Parameters:
channel
- Analog channel for this sensor
-
-
Method Details
-
setRange
Set the range in meters returned by the distance sensor.- Parameters:
range
- range in meters of the target returned by the sensor
-