Class AnalogInputWPIAdapater
java.lang.Object
xbot.common.controls.sensors.XAnalogInput
xbot.common.controls.sensors.wpi_adapters.AnalogInputWPIAdapater
- All Implemented Interfaces:
DataFrameRefreshable, XBaseIO
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class XAnalogInput
XAnalogInput.XAnalogInputFactory -
Field Summary
Fields inherited from class XAnalogInput
channel -
Constructor Summary
ConstructorsConstructorDescriptionAnalogInputWPIAdapater(int channel, DevicePolice police, DataFrameRegistry dataFrameRegistry) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAsDigital(double threshold) intorg.wpilib.hardware.discrete.AnalogInputintgetValue()doubleReturns the current unfiltered voltage directly from the device.Methods inherited from class XAnalogInput
getAverageVoltage, refreshDataFrame, setAverageBits, setAverageSampleWindow
-
Constructor Details
-
AnalogInputWPIAdapater
@AssistedInject public AnalogInputWPIAdapater(@Assisted("channel") int channel, DevicePolice police, DataFrameRegistry dataFrameRegistry)
-
-
Method Details
-
getValue
public int getValue() -
getVoltage
public double getVoltage()Description copied from class:XAnalogInputReturns the current unfiltered voltage directly from the device.- Specified by:
getVoltagein classXAnalogInput
-
getInternalDevice
public org.wpilib.hardware.discrete.AnalogInput getInternalDevice() -
getChannel
public int getChannel() -
getAsDigital
public boolean getAsDigital(double threshold) - Specified by:
getAsDigitalin classXAnalogInput
-