Class ChickenXboxController


  • public class ChickenXboxController
    extends edu.wpi.first.wpilibj.XboxController
    • Constructor Detail

      • ChickenXboxController

        public ChickenXboxController​(int port)
        Construct an instance of a joystick. The joystick index is the USB port on the drivers station.
        Parameters:
        port - The port on the Driver Station that the joystick is plugged into.
    • Method Detail

      • getRectifiedX

        public double getRectifiedX​(edu.wpi.first.wpilibj.GenericHID.Hand hand)
        Get the X axis value of the controller in the official 1540 coordinate system
        Parameters:
        hand - Side of controller whose value should be returned.
        Returns:
        The X axis value of the controller in the official 1540 coordinate system
      • getRectifiedY

        public double getRectifiedY​(edu.wpi.first.wpilibj.GenericHID.Hand hand)
        Get the Y axis value of the controller in the official 1540 coordinate system
        Parameters:
        hand - Side of controller whose value should be returned.
        Returns:
        The Y axis value of the controller in the official 1540 coordinate system
      • get2DJoystickVector

        public org.apache.commons.math3.geometry.euclidean.twod.Vector2D get2DJoystickVector​(edu.wpi.first.wpilibj.GenericHID.Hand hand)
      • get2DJoystickAngle

        public double get2DJoystickAngle​(edu.wpi.first.wpilibj.GenericHID.Hand hand)
        Gets angle from a 2D joystick
        Parameters:
        hand - Left vs right joystick of the xbox this
        Returns:
        Angle in radians counter-clockwise from 12 o'clock
      • get2DJoystickMagnitude

        public double get2DJoystickMagnitude​(edu.wpi.first.wpilibj.GenericHID.Hand hand)