Class WsJoystickAxis
java.lang.Object
org.wildstang.framework.io.inputs.Input
org.wildstang.framework.io.inputs.AnalogInput
org.wildstang.hardware.roborio.inputs.WsJoystickAxis
Reads a controller joystick axis.
-
Constructor Summary
ConstructorsConstructorDescriptionWsJoystickAxis(String p_name, int p_port, int p_axisIndex) Construct the axis. -
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
-
WsJoystickAxis
Construct the axis.- Parameters:
p_name- Descriptive name of the axis.p_port- Controller port as defined in the driver station.p_axisIndex- Controller axis index.
-
-
Method Details
-
readRawValue
protected double readRawValue()Reads the value from the axis.- Specified by:
readRawValuein classAnalogInput- Returns:
- Raw axis value.
-