Class CustomCommandXbox

java.lang.Object
edu.wpi.first.wpilibj2.command.button.CommandGenericHID
edu.wpi.first.wpilibj2.command.button.CommandXboxController
lib.custom.controllers.CustomCommandXbox

public class CustomCommandXbox extends edu.wpi.first.wpilibj2.command.button.CommandXboxController
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final edu.wpi.first.wpilibj.event.EventLoop
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomCommandXbox(int port, double deadzone)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    edu.wpi.first.wpilibj2.command.button.Trigger
    button(int button)
     
    edu.wpi.first.wpilibj2.command.button.Trigger
    button(int button, edu.wpi.first.wpilibj.event.EventLoop _loop)
    Deprecated.
    void
     
    protected double
    deadzone(double input)
     
    double
     
    double
     
    double
    Get the Y axis value of left side of the controller.
    double
     
    double
    Get the X axis value of right side of the controller.
    double
    Get the Y axis value of right side of the controller.
    edu.wpi.first.wpilibj2.command.button.Trigger
    pov(int pov, int angle)
     
    edu.wpi.first.wpilibj2.command.button.Trigger
    pov(int pov, int angle, edu.wpi.first.wpilibj.event.EventLoop _loop)
    Deprecated.

    Methods inherited from class edu.wpi.first.wpilibj2.command.button.CommandXboxController

    a, a, b, b, back, back, getHID, leftBumper, leftBumper, leftStick, leftStick, leftTrigger, leftTrigger, leftTrigger, rightBumper, rightBumper, rightStick, rightStick, rightTrigger, rightTrigger, rightTrigger, start, start, x, x, y, y

    Methods inherited from class edu.wpi.first.wpilibj2.command.button.CommandGenericHID

    axisGreaterThan, axisGreaterThan, axisLessThan, axisLessThan, axisMagnitudeGreaterThan, axisMagnitudeGreaterThan, getRawAxis, isConnected, pov, povCenter, povDown, povDownLeft, povDownRight, povLeft, povRight, povUp, povUpLeft, povUpRight, setRumble

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • loop

      public final edu.wpi.first.wpilibj.event.EventLoop loop
  • Constructor Details

    • CustomCommandXbox

      public CustomCommandXbox(int port, double deadzone)
  • Method Details

    • button

      public edu.wpi.first.wpilibj2.command.button.Trigger button(int button)
      Overrides:
      button in class edu.wpi.first.wpilibj2.command.button.CommandGenericHID
    • button

      @Deprecated public edu.wpi.first.wpilibj2.command.button.Trigger button(int button, edu.wpi.first.wpilibj.event.EventLoop _loop)
      Deprecated.
      Not actually "deprecated"; do not remove. Should not be used in our code, use button(int) instead.
      Overrides:
      button in class edu.wpi.first.wpilibj2.command.button.CommandGenericHID
    • pov

      public edu.wpi.first.wpilibj2.command.button.Trigger pov(int pov, int angle)
    • pov

      @Deprecated public edu.wpi.first.wpilibj2.command.button.Trigger pov(int pov, int angle, edu.wpi.first.wpilibj.event.EventLoop _loop)
      Deprecated.
      Not actually "deprecated"; do not remove. Should not be used in our code, use other pov methods instead like CommandGenericHID.pov(int), pov(int, int), or CommandGenericHID.povUp().
      Overrides:
      pov in class edu.wpi.first.wpilibj2.command.button.CommandGenericHID
    • clearBindings

      public void clearBindings()
    • getLeftX

      public double getLeftX()
      Overrides:
      getLeftX in class edu.wpi.first.wpilibj2.command.button.CommandXboxController
    • getRightX

      public double getRightX()
      Get the X axis value of right side of the controller.
      Overrides:
      getRightX in class edu.wpi.first.wpilibj2.command.button.CommandXboxController
      Returns:
      The axis value.
    • getLeftY

      public double getLeftY()
      Get the Y axis value of left side of the controller.
      Overrides:
      getLeftY in class edu.wpi.first.wpilibj2.command.button.CommandXboxController
      Returns:
      The axis value.
    • getRightY

      public double getRightY()
      Get the Y axis value of right side of the controller.
      Overrides:
      getRightY in class edu.wpi.first.wpilibj2.command.button.CommandXboxController
      Returns:
      The axis value.
    • getRightTriggerAxis

      public double getRightTriggerAxis()
      Overrides:
      getRightTriggerAxis in class edu.wpi.first.wpilibj2.command.button.CommandXboxController
    • getLeftTriggerAxis

      public double getLeftTriggerAxis()
      Overrides:
      getLeftTriggerAxis in class edu.wpi.first.wpilibj2.command.button.CommandXboxController
    • deadzone

      protected double deadzone(double input)