Class WsAbsoluteEncoder
- java.lang.Object
-
- org.wildstang.framework.io.inputs.Input
-
- org.wildstang.framework.io.inputs.AnalogInput
-
- org.wildstang.hardware.roborio.inputs.WsAnalogInput
-
- org.wildstang.hardware.roborio.inputs.WsAbsoluteEncoder
-
public class WsAbsoluteEncoder extends WsAnalogInput
Reads an absolute encoder.
-
-
Constructor Summary
Constructors Constructor Description WsAbsoluteEncoder(java.lang.String p_name, int channel, int p_maxVoltage)
Construct the encoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
readRawValue()
Reads the value from the encoder.-
Methods inherited from class org.wildstang.framework.io.inputs.AnalogInput
getValue, readDataFromInput, setValue
-
Methods inherited from class org.wildstang.framework.io.inputs.Input
addInputListener, disable, enable, getInputListeners, getName, hasValueChanged, isEnabled, notifyListeners, removeAllListeners, removeInputListener, setValueChanged, update
-
-
-
-
Method Detail
-
readRawValue
public double readRawValue()
Reads the value from the encoder.- Overrides:
readRawValue
in classWsAnalogInput
- Returns:
- Encoder position calucated from raw value.
-
-