Class WsDigitalInput
- java.lang.Object
-
- org.wildstang.framework.io.inputs.Input
-
- org.wildstang.framework.io.inputs.DigitalInput
-
- org.wildstang.hardware.roborio.inputs.WsDigitalInput
-
public class WsDigitalInput extends DigitalInput
Reads a digital input.
-
-
Constructor Summary
Constructors Constructor Description WsDigitalInput(java.lang.String p_name, int channel, boolean p_pullup)
Construct the digital input.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
readRawValue()
Reads the value from the digital input.-
Methods inherited from class org.wildstang.framework.io.inputs.DigitalInput
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 boolean readRawValue()
Reads the value from the digital input. Note: if pull up mode is enabled input is reversed.- Specified by:
readRawValue
in classDigitalInput
- Returns:
- Raw value from input.
-
-