VEX IQ Python API
Public Member Functions | List of all members
vex.ControllerAxis Class Reference

Use the axis class to get values from one of the controller's joysticks. More...

Public Member Functions

def __init__ (self, parent, axtype)
 
def value (self)
 Gets the value of the joystick axis on a scale from -127 to 127. More...
 
def position (self)
 Gets the position of the joystick axis on a scale from -100 to 100. More...
 

Detailed Description

Use the axis class to get values from one of the controller's joysticks.

Constructor & Destructor Documentation

◆ __init__()

def vex.ControllerAxis.__init__ (   self,
  parent,
  axtype 
)

Member Function Documentation

◆ value()

def vex.ControllerAxis.value (   self)

Gets the value of the joystick axis on a scale from -127 to 127.

Returns
an integer that represents the value of the joystick axis.

◆ position()

def vex.ControllerAxis.position (   self)

Gets the position of the joystick axis on a scale from -100 to 100.

Returns
an integer that represents the position of the joystick axis.