Class WsJoystickAxis


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

    • WsJoystickAxis

      public WsJoystickAxis(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 Details

    • readRawValue

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