Class XEncoder

java.lang.Object
xbot.common.controls.sensors.XEncoder
Direct Known Subclasses:
EncoderWPIAdapter, MockEncoder

public abstract class XEncoder extends Object
  • Field Details

    • isInverted

      protected boolean isInverted
    • distancePerPulse

      protected DoubleProperty distancePerPulse
    • distancePerPulseSupplier

      protected Supplier<Double> distancePerPulseSupplier
  • Constructor Details

  • Method Details

    • setDistancePerPulseSupplier

      public void setDistancePerPulseSupplier(Supplier<Double> supplier)
    • getAdjustedDistance

      public double getAdjustedDistance()
    • getAdjustedRate

      public double getAdjustedRate()
    • setInverted

      public void setInverted(boolean inverted)
    • getRate

      protected abstract double getRate()
    • getDistance

      protected abstract double getDistance()
    • setSamplesToAverage

      public abstract void setSamplesToAverage(int samples)