Class MockEncoder

java.lang.Object
xbot.common.controls.sensors.XEncoder
xbot.common.controls.sensors.mock_adapters.MockEncoder
All Implemented Interfaces:
ISimulatableSensor

public class MockEncoder extends XEncoder implements ISimulatableSensor
  • Constructor Details

    • MockEncoder

      @AssistedInject public MockEncoder(@Assisted("name") String name, @Assisted("aChannel") int aChannel, @Assisted("bChannel") int bChannel, @Assisted("defaultDistancePerPulse") double defaultDistancePerPulse, PropertyFactory propMan, DevicePolice police)
    • MockEncoder

      public MockEncoder(String prefix, PropertyFactory propMan)
  • Method Details

    • setDistance

      public void setDistance(double distance)
    • getRate

      protected double getRate()
      Specified by:
      getRate in class XEncoder
    • setRate

      public void setRate(double newRate)
    • getDistance

      protected double getDistance()
      Specified by:
      getDistance in class XEncoder
    • setSamplesToAverage

      public void setSamplesToAverage(int samples)
      Specified by:
      setSamplesToAverage in class XEncoder
    • ingestSimulationData

      public void ingestSimulationData(org.json.JSONObject payload)
      Specified by:
      ingestSimulationData in interface ISimulatableSensor