Class MockDistanceSensor

java.lang.Object
edu.wpi.first.wpilibj.MockDistanceSensor
All Implemented Interfaces:
DistanceSensor

public class MockDistanceSensor extends Object implements DistanceSensor
  • Constructor Details

    • MockDistanceSensor

      public MockDistanceSensor()
  • Method Details

    • getDistance

      public double getDistance()
      Specified by:
      getDistance in interface DistanceSensor
    • setDistance

      public void setDistance(double distance)
    • incrementDistance

      public void incrementDistance(double delta)
    • setAveraging

      public void setAveraging(boolean shouldAverage)
      Specified by:
      setAveraging in interface DistanceSensor