Package edu.wpi.first.hal.sim
Class EncoderSim
- java.lang.Object
-
- edu.wpi.first.hal.sim.EncoderSim
-
public class EncoderSim extends Object
-
-
Constructor Summary
Constructors Constructor Description EncoderSim(int index)
-
Method Summary
-
-
-
Method Detail
-
registerInitializedCallback
public CallbackStore registerInitializedCallback(NotifyCallback callback, boolean initialNotify)
-
getInitialized
public boolean getInitialized()
-
setInitialized
public void setInitialized(boolean initialized)
-
registerCountCallback
public CallbackStore registerCountCallback(NotifyCallback callback, boolean initialNotify)
-
getCount
public int getCount()
-
setCount
public void setCount(int count)
-
registerPeriodCallback
public CallbackStore registerPeriodCallback(NotifyCallback callback, boolean initialNotify)
-
getPeriod
public double getPeriod()
-
setPeriod
public void setPeriod(double period)
-
registerResetCallback
public CallbackStore registerResetCallback(NotifyCallback callback, boolean initialNotify)
-
getReset
public boolean getReset()
-
setReset
public void setReset(boolean reset)
-
registerMaxPeriodCallback
public CallbackStore registerMaxPeriodCallback(NotifyCallback callback, boolean initialNotify)
-
getMaxPeriod
public double getMaxPeriod()
-
setMaxPeriod
public void setMaxPeriod(double maxPeriod)
-
registerDirectionCallback
public CallbackStore registerDirectionCallback(NotifyCallback callback, boolean initialNotify)
-
getDirection
public boolean getDirection()
-
setDirection
public void setDirection(boolean direction)
-
registerReverseDirectionCallback
public CallbackStore registerReverseDirectionCallback(NotifyCallback callback, boolean initialNotify)
-
getReverseDirection
public boolean getReverseDirection()
-
setReverseDirection
public void setReverseDirection(boolean reverseDirection)
-
registerSamplesToAverageCallback
public CallbackStore registerSamplesToAverageCallback(NotifyCallback callback, boolean initialNotify)
-
getSamplesToAverage
public int getSamplesToAverage()
-
setSamplesToAverage
public void setSamplesToAverage(int samplesToAverage)
-
resetData
public void resetData()
-
-