VEX IQ Python API
Public Member Functions | List of all members
vexiq.Joystick Class Reference

Config Joystick controller. More...

Public Member Functions

def __init__ (self)
 
def set_deadband (self, value)
 Set the deadband value for all axes (threshold below which axes would read out zero) More...
 
def axisA (self)
 Axis A position -100 to 100. More...
 
def axisB (self)
 Axis B position -100 to 100. More...
 
def axisC (self)
 Axis C position -100 to 100. More...
 
def axisD (self)
 Axis D position -100 to 100. More...
 
def bEup (self)
 Button E-up pressed (True/False). More...
 
def bEdown (self)
 Button E-down pressed (True/False). More...
 
def bFup (self)
 Button F-up pressed (True/False). More...
 
def bFdown (self)
 Button F-down pressed (True/False). More...
 
def bLup (self)
 Button L-up pressed (True/False). More...
 
def bLdown (self)
 Button L-down pressed (True/False). More...
 
def bRup (self)
 Button R-up pressed (True/False). More...
 
def bRdown (self)
 Button R-down pressed (True/False). More...
 

Detailed Description

Config Joystick controller.

Constructor & Destructor Documentation

◆ __init__()

def vexiq.Joystick.__init__ (   self)

Member Function Documentation

◆ set_deadband()

def vexiq.Joystick.set_deadband (   self,
  value 
)

Set the deadband value for all axes (threshold below which axes would read out zero)

Parameters
valuedeadband threshold

◆ axisA()

def vexiq.Joystick.axisA (   self)

Axis A position -100 to 100.

Returns
number [-100...100]

◆ axisB()

def vexiq.Joystick.axisB (   self)

Axis B position -100 to 100.

Returns
number [-100...100]

◆ axisC()

def vexiq.Joystick.axisC (   self)

Axis C position -100 to 100.

Returns
number [-100...100]

◆ axisD()

def vexiq.Joystick.axisD (   self)

Axis D position -100 to 100.

Returns
number [-100...100]

◆ bEup()

def vexiq.Joystick.bEup (   self)

Button E-up pressed (True/False).

Returns
bool

◆ bEdown()

def vexiq.Joystick.bEdown (   self)

Button E-down pressed (True/False).

Returns
bool

◆ bFup()

def vexiq.Joystick.bFup (   self)

Button F-up pressed (True/False).

Returns
bool

◆ bFdown()

def vexiq.Joystick.bFdown (   self)

Button F-down pressed (True/False).

Returns
bool

◆ bLup()

def vexiq.Joystick.bLup (   self)

Button L-up pressed (True/False).

Returns
bool

◆ bLdown()

def vexiq.Joystick.bLdown (   self)

Button L-down pressed (True/False).

Returns
bool

◆ bRup()

def vexiq.Joystick.bRup (   self)

Button R-up pressed (True/False).

Returns
bool

◆ bRdown()

def vexiq.Joystick.bRdown (   self)

Button R-down pressed (True/False).

Returns
bool