|
VEX IQ C++ API
|
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 | |
| button & | ButtonEUp = buttonEUp |
| A button that represents the E Up button on the controller. More... | |
| button & | ButtonEDown = buttonEDown |
| A button that represents the E Down button on the controller. More... | |
| button & | ButtonFUp = buttonFUp |
| A button that represents the F Up button on the controller. More... | |
| button & | ButtonFDown = buttonFDown |
| A button that represents the F Down button on the controller. More... | |
| button & | ButtonLUp = buttonLUp |
| A button that represents the L Up button on the controller. More... | |
| button & | ButtonLDown = buttonLDown |
| A button that represents the L Down button on the controller. More... | |
| button & | ButtonRUp = buttonRUp |
| A button that represents the left button on the controller. More... | |
| button & | ButtonRDown = buttonRDown |
| A button that represents the right button on the controller. More... | |
| axis & | AxisA = axisA |
| An axis of a joystick that represents axis 1 on the controller. More... | |
| axis & | AxisB = axisB |
| An axis of a joystick that represents axis 2 on the controller. More... | |
| axis & | AxisC = axisC |
| An axis of a joystick that represents axis 3 on the controller. More... | |
| axis & | AxisD = axisD |
| An axis of a joystick that represents axis 4 on the controller. More... | |
Use the controller class to get values from the remote controller as well as write to the controller's screen.
|
inline |
Creates a new controller object.
|
inline |
| 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)
| int32_t vex::controller::deadband | ( | percentUnits | units | ) |
get the value of the controller axis deadband
| button& vex::controller::ButtonEUp = buttonEUp |
A button that represents the E Up button on the controller.
| button& vex::controller::ButtonEDown = buttonEDown |
A button that represents the E Down button on the controller.
| button& vex::controller::ButtonFUp = buttonFUp |
A button that represents the F Up button on the controller.
| button& vex::controller::ButtonFDown = buttonFDown |
A button that represents the F Down button on the controller.
| button& vex::controller::ButtonLUp = buttonLUp |
A button that represents the L Up button on the controller.
| button& vex::controller::ButtonLDown = buttonLDown |
A button that represents the L Down button on the controller.
| button& vex::controller::ButtonRUp = buttonRUp |
A button that represents the left button on the controller.
| button& vex::controller::ButtonRDown = buttonRDown |
A button that represents the right button on the controller.
| axis& vex::controller::AxisA = axisA |
An axis of a joystick that represents axis 1 on the controller.
| axis& vex::controller::AxisB = axisB |
An axis of a joystick that represents axis 2 on the controller.
| axis& vex::controller::AxisC = axisC |
An axis of a joystick that represents axis 3 on the controller.
| axis& vex::controller::AxisD = axisD |
An axis of a joystick that represents axis 4 on the controller.
1.8.15