Package edu.wpi.first.wpilibj
Class MockDigitalInput
java.lang.Object
xbot.common.controls.sensors.XDigitalInput
edu.wpi.first.wpilibj.MockDigitalInput
- All Implemented Interfaces:
DataFrameRefreshable
,XBaseIO
,ISimulatableSensor
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XDigitalInput
XDigitalInput.XDigitalInputFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMockDigitalInput
(DeviceInfo info, String owningSystemPrefix, DevicePolice police) -
Method Summary
Modifier and TypeMethodDescriptionint
void
ingestSimulationData
(org.json.JSONObject payload) void
setInverted
(boolean inverted) void
setValue
(boolean value) void
updateInputs
(XDigitalInputs inputs) Methods inherited from class xbot.common.controls.sensors.XDigitalInput
get, getInverted, refreshDataFrame
-
Field Details
-
value
protected boolean value
-
-
Constructor Details
-
MockDigitalInput
@AssistedInject public MockDigitalInput(@Assisted("info") DeviceInfo info, @Assisted("owningSystemPrefix") String owningSystemPrefix, DevicePolice police)
-
-
Method Details
-
setValue
public void setValue(boolean value) -
setInverted
public void setInverted(boolean inverted) - Overrides:
setInverted
in classXDigitalInput
-
updateInputs
- Specified by:
updateInputs
in classXDigitalInput
-
getChannel
public int getChannel()- Specified by:
getChannel
in interfaceXBaseIO
-
ingestSimulationData
public void ingestSimulationData(org.json.JSONObject payload) - Specified by:
ingestSimulationData
in interfaceISimulatableSensor
-