Class DigitalInputWPIAdapter
java.lang.Object
xbot.common.controls.sensors.XDigitalInput
xbot.common.controls.sensors.wpi_adapters.DigitalInputWPIAdapter
- All Implemented Interfaces:
DataFrameRefreshable
,XBaseIO
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XDigitalInput
XDigitalInput.XDigitalInputFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDigitalInputWPIAdapter
(DeviceInfo info, String owningSystemPrefix, DevicePolice police) Create an instance of a Digital Input class. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the channel of the digital inputvoid
updateInputs
(XDigitalInputs inputs) Methods inherited from class xbot.common.controls.sensors.XDigitalInput
get, getInverted, refreshDataFrame, setInverted
-
Field Details
-
adapter
-
-
Constructor Details
-
DigitalInputWPIAdapter
@AssistedInject public DigitalInputWPIAdapter(@Assisted("info") DeviceInfo info, @Assisted("owningSystemPrefix") String owningSystemPrefix, DevicePolice police) Create an instance of a Digital Input class. Creates a digital input given a channel.- Parameters:
info
- the DIO channel for the digital input 0-9 are on-board, 10-25 are on the MXP
-
-
Method Details
-
updateInputs
- Specified by:
updateInputs
in classXDigitalInput
-
getChannel
public int getChannel()Get the channel of the digital input- Returns:
- The GPIO channel number that this object represents.
-