Class WsJoystickAxis


  • public class WsJoystickAxis
    extends AnalogInput
    Reads a controller joystick axis.
    • Constructor Detail

      • WsJoystickAxis

        public WsJoystickAxis​(java.lang.String p_name,
                              int p_port,
                              int p_axisIndex)
        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 Detail

      • readRawValue

        protected double readRawValue()
        Reads the value from the axis.
        Specified by:
        readRawValue in class AnalogInput
        Returns:
        Raw axis value.