Class MockAbsoluteEncoder
java.lang.Object
xbot.common.controls.sensors.XAbsoluteEncoder
xbot.common.controls.sensors.mock_adapters.MockAbsoluteEncoder
- All Implemented Interfaces:
DataFrameRefreshable
,ISimulatableSensor
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XAbsoluteEncoder
XAbsoluteEncoder.XAbsoluteEncoderFactory
-
Field Summary
Fields inherited from class xbot.common.controls.sensors.XAbsoluteEncoder
info
-
Constructor Summary
ConstructorDescriptionMockAbsoluteEncoder
(DeviceInfo deviceInfo, String owningSystemPrefix, DevicePolice police, PropertyFactory pf) -
Method Summary
Modifier and TypeMethodDescriptionint
double
void
ingestSimulationData
(org.json.JSONObject payload) void
setPosition
(Angle newPosition) void
updateInputs
(XAbsoluteEncoderInputs inputs) Methods inherited from class xbot.common.controls.sensors.XAbsoluteEncoder
getAbsolutePosition, getHealth, getPosition, getVelocity, refreshDataFrame
-
Constructor Details
-
MockAbsoluteEncoder
@AssistedInject public MockAbsoluteEncoder(@Assisted("deviceInfo") DeviceInfo deviceInfo, @Assisted("owningSystemPrefix") String owningSystemPrefix, DevicePolice police, PropertyFactory pf)
-
-
Method Details
-
getDeviceId
public int getDeviceId()- Specified by:
getDeviceId
in classXAbsoluteEncoder
-
getPosition_internal
-
getAbsolutePosition_internal
-
getVelocity_internal
-
setPosition
- Specified by:
setPosition
in classXAbsoluteEncoder
-
getPositionOffset
public double getPositionOffset() -
ingestSimulationData
public void ingestSimulationData(org.json.JSONObject payload) - Specified by:
ingestSimulationData
in interfaceISimulatableSensor
-
getHealth_internal
-
updateInputs
- Specified by:
updateInputs
in classXAbsoluteEncoder
-