Package xbot.common.controls.sensors
Class XAnalogInput
java.lang.Object
xbot.common.controls.sensors.XAnalogInput
- All Implemented Interfaces:
XBaseIO
- Direct Known Subclasses:
AnalogInputWPIAdapater
,MockAnalogInput
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
getAsDigital
(double threshold) abstract double
abstract double
abstract void
setAverageBits
(int bits) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xbot.common.controls.XBaseIO
getChannel
-
Field Details
-
channel
protected int channel
-
-
Constructor Details
-
XAnalogInput
-
-
Method Details
-
getVoltage
public abstract double getVoltage() -
getAverageVoltage
public abstract double getAverageVoltage() -
setAverageBits
public abstract void setAverageBits(int bits) -
getAsDigital
public abstract boolean getAsDigital(double threshold)
-