Class SharpIRSim

java.lang.Object
edu.wpi.first.wpilibj.simulation.SharpIRSim

public class SharpIRSim extends Object
Simulation class for Sharp IR sensors.
  • Constructor Details

    • SharpIRSim

      public SharpIRSim(SharpIR sharpIR)
      Constructor.
      Parameters:
      sharpIR - The real sensor to simulate
    • SharpIRSim

      public SharpIRSim(int channel)
      Constructor.
      Parameters:
      channel - Analog channel for this sensor
  • Method Details

    • setRange

      public void setRange(double range)
      Set the range in meters returned by the distance sensor.
      Parameters:
      range - range in meters of the target returned by the sensor