The Knights of Ni 2024
CenterStage Off-season Documentation
Loading...
Searching...
No Matches
org.firstinspires.ftc.teamcode.GamepadWrapper Class Reference

Public Member Functions

 GamepadWrapper (Gamepad gamepad)
 
void update ()
 

Static Public Member Functions

static double joystickDeadzoneCorrection (double joystickInput)
 Discards joystick inputs between -joystickDeadZone and joystickDeadZone.
 

Public Attributes

double leftStickX
 
double leftStickY
 
double rightStickX
 
double rightStickY
 
float triggerLeft
 
float triggerRight
 
Button aButton = new Button()
 
Button bButton = new Button()
 
Button xButton = new Button()
 
Button yButton = new Button()
 
Button dPadUp = new Button()
 
Button dPadDown = new Button()
 
Button dPadLeft = new Button()
 
Button dPadRight = new Button()
 
Button bumperLeft = new Button()
 
Button bumperRight = new Button()
 

Private Attributes

final Gamepad gamepad
 

Static Private Attributes

static final double joystickDeadZone = 0.1
 

Member Function Documentation

◆ joystickDeadzoneCorrection()

static double org.firstinspires.ftc.teamcode.GamepadWrapper.joystickDeadzoneCorrection ( double joystickInput)
static

Discards joystick inputs between -joystickDeadZone and joystickDeadZone.

Parameters
joystickInputthe input of the joystick
Returns
the corrected input of the joystick

The documentation for this class was generated from the following file: