Class WsJSJoystickInputConfig
java.lang.Object
org.wildstang.hardware.roborio.inputs.config.WsJSJoystickInputConfig
- All Implemented Interfaces:
InputConfig
Contains configurations for joystick axis.
-
Constructor Summary
ConstructorsConstructorDescriptionWsJSJoystickInputConfig(int p_port, int p_axis) Construct the joystick axis config -
Method Summary
-
Constructor Details
-
WsJSJoystickInputConfig
public WsJSJoystickInputConfig(int p_port, int p_axis) Construct the joystick axis config- Parameters:
p_port- Driver station controller port number.p_axis- Joystick axis index.
-
-
Method Details
-
getPort
public int getPort()Returns the controller port number from the driver station.- Returns:
- The controller port number.
-
getAxis
public int getAxis()Returns the joystick axis index.- Returns:
- The joystick axis index.
-
toString
Builds a JSON String describing the joystick axis config.
-