Class SharpIRSim
java.lang.Object
org.wpilib.simulation.SharpIRSim
Simulation class for Sharp IR sensors.
-
Constructor Summary
ConstructorsConstructorDescriptionSharpIRSim(int channel) Constructor.SharpIRSim(SharpIR sharpIR) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetRange(double range) Set the range in meters returned by the distance sensor.
-
Constructor Details
-
SharpIRSim
-
SharpIRSim
-
-
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
-