Class SN_DualActionStick

java.lang.Object
edu.wpi.first.wpilibj.GenericHID
edu.wpi.first.wpilibj.Joystick
com.frcteam3255.joystick.SN_DualActionStick

public class SN_DualActionStick extends edu.wpi.first.wpilibj.Joystick
Custom 12 Button Joystick set up for Logitech F310 Gamepad

Adds custom axis return methods such as getArcadeMove() and getArcadeRotate()

  • Nested Class Summary

    Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.Joystick

    edu.wpi.first.wpilibj.Joystick.AxisType, edu.wpi.first.wpilibj.Joystick.ButtonType

    Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.GenericHID

    edu.wpi.first.wpilibj.GenericHID.HIDType, edu.wpi.first.wpilibj.GenericHID.RumbleType
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    edu.wpi.first.wpilibj2.command.button.JoystickButton
    Joystick Button 2
    edu.wpi.first.wpilibj2.command.button.JoystickButton
    Joystick Button 3
    edu.wpi.first.wpilibj2.command.button.JoystickButton
    Joystick Button 9
    edu.wpi.first.wpilibj2.command.button.JoystickButton
    Joystick Button 5
    edu.wpi.first.wpilibj2.command.button.JoystickButton
    Joystick Button 11
    edu.wpi.first.wpilibj2.command.button.JoystickButton
    Joystick Button 7
    edu.wpi.first.wpilibj2.command.button.JoystickButton
    Joystick Button 6
    edu.wpi.first.wpilibj2.command.button.JoystickButton
    Joystick Button 12
    edu.wpi.first.wpilibj2.command.button.JoystickButton
    Joystick Button 8
    edu.wpi.first.wpilibj2.command.button.JoystickButton
    Joystick Button 10
    edu.wpi.first.wpilibj2.command.button.JoystickButton
    Joystick Button 1
    edu.wpi.first.wpilibj2.command.button.JoystickButton
    Joystick Button 4
    edu.wpi.first.wpilibj2.command.button.POVButton
     
    edu.wpi.first.wpilibj2.command.button.POVButton
     
    edu.wpi.first.wpilibj2.command.button.POVButton
     
    edu.wpi.first.wpilibj2.command.button.POVButton
     
    edu.wpi.first.wpilibj2.command.button.POVButton
     
    edu.wpi.first.wpilibj2.command.button.POVButton
     
    edu.wpi.first.wpilibj2.command.button.POVButton
     
    edu.wpi.first.wpilibj2.command.button.POVButton
     

    Fields inherited from class edu.wpi.first.wpilibj.Joystick

    kDefaultThrottleChannel, kDefaultTwistChannel, kDefaultXChannel, kDefaultYChannel, kDefaultZChannel
  • Constructor Summary

    Constructors
    Constructor
    Description
    Logitech F310 Gamepad with 12 Buttons and custom Axes
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    double
     
    double
     
    double
     
    double
     
    double
     
    double
     
    double
     
    double
     
    double
     

    Methods inherited from class edu.wpi.first.wpilibj.Joystick

    getDirectionDegrees, getDirectionRadians, getMagnitude, getThrottle, getThrottleChannel, getTop, getTopPressed, getTopReleased, getTrigger, getTriggerPressed, getTriggerReleased, getTwist, getTwistChannel, getX, getXChannel, getY, getYChannel, getZ, getZChannel, setThrottleChannel, setTwistChannel, setXChannel, setYChannel, setZChannel, top, trigger

    Methods inherited from class edu.wpi.first.wpilibj.GenericHID

    axisGreaterThan, axisLessThan, button, getAxisCount, getAxisType, getButtonCount, getName, getPort, getPOV, getPOV, getPOVCount, getRawAxis, getRawButton, getRawButtonPressed, getRawButtonReleased, getType, isConnected, pov, pov, povCenter, povDown, povDownLeft, povDownRight, povLeft, povRight, povUp, povUpLeft, povUpRight, setOutput, setOutputs, setRumble

    Methods inherited from class java.lang.Object

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

    • btn_X

      public edu.wpi.first.wpilibj2.command.button.JoystickButton btn_X
      Joystick Button 1
    • btn_A

      public edu.wpi.first.wpilibj2.command.button.JoystickButton btn_A
      Joystick Button 2
    • btn_B

      public edu.wpi.first.wpilibj2.command.button.JoystickButton btn_B
      Joystick Button 3
    • btn_Y

      public edu.wpi.first.wpilibj2.command.button.JoystickButton btn_Y
      Joystick Button 4
    • btn_LBump

      public edu.wpi.first.wpilibj2.command.button.JoystickButton btn_LBump
      Joystick Button 5
    • btn_RBump

      public edu.wpi.first.wpilibj2.command.button.JoystickButton btn_RBump
      Joystick Button 6
    • btn_LTrig

      public edu.wpi.first.wpilibj2.command.button.JoystickButton btn_LTrig
      Joystick Button 7
    • btn_RTrig

      public edu.wpi.first.wpilibj2.command.button.JoystickButton btn_RTrig
      Joystick Button 8
    • btn_Back

      public edu.wpi.first.wpilibj2.command.button.JoystickButton btn_Back
      Joystick Button 9
    • btn_Start

      public edu.wpi.first.wpilibj2.command.button.JoystickButton btn_Start
      Joystick Button 10
    • btn_LStick

      public edu.wpi.first.wpilibj2.command.button.JoystickButton btn_LStick
      Joystick Button 11
    • btn_RStick

      public edu.wpi.first.wpilibj2.command.button.JoystickButton btn_RStick
      Joystick Button 12
    • POV_North

      public edu.wpi.first.wpilibj2.command.button.POVButton POV_North
    • POV_NorthEast

      public edu.wpi.first.wpilibj2.command.button.POVButton POV_NorthEast
    • POV_East

      public edu.wpi.first.wpilibj2.command.button.POVButton POV_East
    • POV_SouthEast

      public edu.wpi.first.wpilibj2.command.button.POVButton POV_SouthEast
    • POV_South

      public edu.wpi.first.wpilibj2.command.button.POVButton POV_South
    • POV_SouthWest

      public edu.wpi.first.wpilibj2.command.button.POVButton POV_SouthWest
    • POV_West

      public edu.wpi.first.wpilibj2.command.button.POVButton POV_West
    • POV_NorthWest

      public edu.wpi.first.wpilibj2.command.button.POVButton POV_NorthWest
  • Constructor Details

    • SN_DualActionStick

      public SN_DualActionStick(int port)
      Logitech F310 Gamepad with 12 Buttons and custom Axes
      Parameters:
      port - The port on the Driver Station that the joystick is plugged into.
  • Method Details

    • getArcadeMove

      public double getArcadeMove()
      Returns:
      inverted position value of RawAxis(1)
    • getArcadeRotate

      public double getArcadeRotate()
      Returns:
      position value of RawAxis(2)
    • getArcadeStrafe

      public double getArcadeStrafe()
      Returns:
      inverted position value of RawAxis(0)
    • getTankLeft

      public double getTankLeft()
      Returns:
      inverted position value of RawAxis(1)
    • getTankRight

      public double getTankRight()
      Returns:
      inverted position value of RawAxis(5)
    • getLeftStickX

      public double getLeftStickX()
      Returns:
      position value of RawAxis(0)
    • getLeftStickY

      public double getLeftStickY()
      Returns:
      inverted position value of RawAxis(1)
    • getRightStickX

      public double getRightStickX()
      Returns:
      position value of RawAxis(2)
    • getRightStickY

      public double getRightStickY()
      Returns:
      inverted position value of RawAxis(3)
    • getAxisVar

      public double getAxisVar(SN_IntPreference axisId)
      Parameters:
      axisId - id number of controller axis, viewable in this file if needed
      Returns:
      position value of RawAxis(axisId)