Class XAnalogDistanceSensor

java.lang.Object
xbot.common.controls.sensors.XAnalogDistanceSensor
All Implemented Interfaces:
DistanceSensor
Direct Known Subclasses:
AnalogDistanceSensor, SimulatedAnalogDistanceSensor

public abstract class XAnalogDistanceSensor extends Object implements DistanceSensor
  • Constructor Details

    • XAnalogDistanceSensor

      protected XAnalogDistanceSensor(int channel, DoubleFunction<Double> voltageMap)
  • Method Details

    • getDistance

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

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

      public abstract void setVoltageOffset(double offset)
    • setDistanceOffset

      public abstract void setDistanceOffset(double offset)