Class AnalogInputWPIAdapater
java.lang.Object
xbot.common.controls.sensors.XAnalogInput
xbot.common.controls.sensors.wpi_adapters.AnalogInputWPIAdapater
- All Implemented Interfaces:
XBaseIO
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class xbot.common.controls.sensors.XAnalogInput
XAnalogInput.XAnalogInputFactory
-
Field Summary
Fields inherited from class xbot.common.controls.sensors.XAnalogInput
channel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getAsDigital
(double threshold) double
int
int
getValue()
double
void
setAverageBits
(int bits)
-
Constructor Details
-
AnalogInputWPIAdapater
@AssistedInject public AnalogInputWPIAdapater(@Assisted("channel") int channel, DevicePolice police)
-
-
Method Details
-
getValue
public int getValue() -
getVoltage
public double getVoltage()- Specified by:
getVoltage
in classXAnalogInput
-
getAverageVoltage
public double getAverageVoltage()- Specified by:
getAverageVoltage
in classXAnalogInput
-
setAverageBits
public void setAverageBits(int bits) - Specified by:
setAverageBits
in classXAnalogInput
-
getInternalDevice
-
getChannel
public int getChannel() -
getAsDigital
public boolean getAsDigital(double threshold) - Specified by:
getAsDigital
in classXAnalogInput
-