Class WsAnalogInput
java.lang.Object
org.wildstang.framework.io.inputs.Input
org.wildstang.framework.io.inputs.AnalogInput
org.wildstang.hardware.roborio.inputs.WsAnalogInput
- Direct Known Subclasses:
WsAbsoluteEncoder
Reads an analog input.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.wildstang.framework.io.inputs.AnalogInput
getValue, readDataFromInput, setValueMethods inherited from class org.wildstang.framework.io.inputs.Input
addInputListener, disable, enable, getInputListeners, getName, hasValueChanged, isEnabled, notifyListeners, removeAllListeners, removeInputListener, setValueChanged, update
-
Constructor Details
-
WsAnalogInput
Construct the analog input.- Parameters:
p_name- Descriptive name for the input.channel- Hardware channel used for input.
-
-
Method Details
-
readRawValue
public double readRawValue()Reads the value from the analog input.- Specified by:
readRawValuein classAnalogInput- Returns:
- Raw value from input.
-