VEX IQ C++ API
Classes | Public Member Functions | Public Attributes | List of all members
vex::controller Class Reference

Use the controller class to get values from the remote controller as well as write to the controller's screen. More...

Classes

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

Public Member Functions

 controller ()
 Creates a new controller object. More...
 
 ~controller ()
 
void setDeadband (int32_t deadband, percentUnits units)
 set the value of the controller axis deadband (minimum absolute threshold at which position is reported as non-zero) More...
 
int32_t deadband (percentUnits units)
 get the value of the controller axis deadband More...
 

Public Attributes

buttonButtonEUp = buttonEUp
 A button that represents the E Up button on the controller. More...
 
buttonButtonEDown = buttonEDown
 A button that represents the E Down button on the controller. More...
 
buttonButtonFUp = buttonFUp
 A button that represents the F Up button on the controller. More...
 
buttonButtonFDown = buttonFDown
 A button that represents the F Down button on the controller. More...
 
buttonButtonLUp = buttonLUp
 A button that represents the L Up button on the controller. More...
 
buttonButtonLDown = buttonLDown
 A button that represents the L Down button on the controller. More...
 
buttonButtonRUp = buttonRUp
 A button that represents the left button on the controller. More...
 
buttonButtonRDown = buttonRDown
 A button that represents the right button on the controller. More...
 
axisAxisA = axisA
 An axis of a joystick that represents axis 1 on the controller. More...
 
axisAxisB = axisB
 An axis of a joystick that represents axis 2 on the controller. More...
 
axisAxisC = axisC
 An axis of a joystick that represents axis 3 on the controller. More...
 
axisAxisD = axisD
 An axis of a joystick that represents axis 4 on the controller. More...
 

Detailed Description

Use the controller class to get values from the remote controller as well as write to the controller's screen.

Constructor & Destructor Documentation

◆ controller()

vex::controller::controller ( )
inline

Creates a new controller object.

◆ ~controller()

vex::controller::~controller ( )
inline

Member Function Documentation

◆ setDeadband()

void vex::controller::setDeadband ( int32_t  deadband,
percentUnits  units 
)

set the value of the controller axis deadband (minimum absolute threshold at which position is reported as non-zero)

◆ deadband()

int32_t vex::controller::deadband ( percentUnits  units)

get the value of the controller axis deadband

Member Data Documentation

◆ ButtonEUp

button& vex::controller::ButtonEUp = buttonEUp

A button that represents the E Up button on the controller.

◆ ButtonEDown

button& vex::controller::ButtonEDown = buttonEDown

A button that represents the E Down button on the controller.

◆ ButtonFUp

button& vex::controller::ButtonFUp = buttonFUp

A button that represents the F Up button on the controller.

◆ ButtonFDown

button& vex::controller::ButtonFDown = buttonFDown

A button that represents the F Down button on the controller.

◆ ButtonLUp

button& vex::controller::ButtonLUp = buttonLUp

A button that represents the L Up button on the controller.

◆ ButtonLDown

button& vex::controller::ButtonLDown = buttonLDown

A button that represents the L Down button on the controller.

◆ ButtonRUp

button& vex::controller::ButtonRUp = buttonRUp

A button that represents the left button on the controller.

◆ ButtonRDown

button& vex::controller::ButtonRDown = buttonRDown

A button that represents the right button on the controller.

◆ AxisA

axis& vex::controller::AxisA = axisA

An axis of a joystick that represents axis 1 on the controller.

◆ AxisB

axis& vex::controller::AxisB = axisB

An axis of a joystick that represents axis 2 on the controller.

◆ AxisC

axis& vex::controller::AxisC = axisC

An axis of a joystick that represents axis 3 on the controller.

◆ AxisD

axis& vex::controller::AxisD = axisD

An axis of a joystick that represents axis 4 on the controller.