Package edu.wpi.first.hal.sim
Class PWMSim
- java.lang.Object
-
- edu.wpi.first.hal.sim.PWMSim
-
public class PWMSim extends Object
-
-
Constructor Summary
Constructors Constructor Description PWMSim(int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getInitialized()
int
getPeriodScale()
double
getPosition()
int
getRawValue()
double
getSpeed()
boolean
getZeroLatch()
CallbackStore
registerInitializedCallback(NotifyCallback callback, boolean initialNotify)
CallbackStore
registerPeriodScaleCallback(NotifyCallback callback, boolean initialNotify)
CallbackStore
registerPositionCallback(NotifyCallback callback, boolean initialNotify)
CallbackStore
registerRawValueCallback(NotifyCallback callback, boolean initialNotify)
CallbackStore
registerSpeedCallback(NotifyCallback callback, boolean initialNotify)
CallbackStore
registerZeroLatchCallback(NotifyCallback callback, boolean initialNotify)
void
resetData()
void
setInitialized(boolean initialized)
void
setPeriodScale(int periodScale)
void
setPosition(double position)
void
setRawValue(int rawValue)
void
setSpeed(double speed)
void
setZeroLatch(boolean zeroLatch)
-
-
-
Method Detail
-
registerInitializedCallback
public CallbackStore registerInitializedCallback(NotifyCallback callback, boolean initialNotify)
-
getInitialized
public boolean getInitialized()
-
setInitialized
public void setInitialized(boolean initialized)
-
registerRawValueCallback
public CallbackStore registerRawValueCallback(NotifyCallback callback, boolean initialNotify)
-
getRawValue
public int getRawValue()
-
setRawValue
public void setRawValue(int rawValue)
-
registerSpeedCallback
public CallbackStore registerSpeedCallback(NotifyCallback callback, boolean initialNotify)
-
getSpeed
public double getSpeed()
-
setSpeed
public void setSpeed(double speed)
-
registerPositionCallback
public CallbackStore registerPositionCallback(NotifyCallback callback, boolean initialNotify)
-
getPosition
public double getPosition()
-
setPosition
public void setPosition(double position)
-
registerPeriodScaleCallback
public CallbackStore registerPeriodScaleCallback(NotifyCallback callback, boolean initialNotify)
-
getPeriodScale
public int getPeriodScale()
-
setPeriodScale
public void setPeriodScale(int periodScale)
-
registerZeroLatchCallback
public CallbackStore registerZeroLatchCallback(NotifyCallback callback, boolean initialNotify)
-
getZeroLatch
public boolean getZeroLatch()
-
setZeroLatch
public void setZeroLatch(boolean zeroLatch)
-
resetData
public void resetData()
-
-