Class MockDutyCycleEncoder
java.lang.Object
xbot.common.controls.sensors.XDutyCycleEncoder
xbot.common.controls.sensors.mock_adapters.MockDutyCycleEncoder
- All Implemented Interfaces:
DataFrameRefreshable
,XBaseIO
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XDutyCycleEncoder
XDutyCycleEncoder.XDutyCycleEncoderFactory
-
Field Summary
Fields inherited from class xbot.common.controls.sensors.XDutyCycleEncoder
channel, inverted
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
setRawPosition
(double rawPosition) void
updateInputs
(XDutyCycleEncoderInputs inputs) Methods inherited from class xbot.common.controls.sensors.XDutyCycleEncoder
getAbsoluteDegrees, getAbsolutePosition, getWrappedPosition, inversionFactor, refreshDataFrame, setInverted
-
Constructor Details
-
MockDutyCycleEncoder
-
-
Method Details
-
setRawPosition
public void setRawPosition(double rawPosition) -
getChannel
public int getChannel()- Specified by:
getChannel
in interfaceXBaseIO
- Overrides:
getChannel
in classXDutyCycleEncoder
-
updateInputs
- Specified by:
updateInputs
in classXDutyCycleEncoder
-