vex.controller package

VEX Controller.

class vex.controller.Controller[source]

Bases: SingletonDevice

Controller.

ROBOT MESH PYTHON B:

Use the Controller class to get values from the remote controller.

(as well as write to the controller’s screen)

robotmesh.com/studio/content/docs/vexiq-python_b/html/classvex_1_1_controller.html

property axisA: ControllerAxis

Return Controller Axis A.

property axisB: ControllerAxis

Return Controller Axis B.

property axisC: ControllerAxis

Return Controller Axis C.

property axisD: ControllerAxis

Return Controller Axis D.

property buttonEDown: ControllerButton

Return Controller Button E-Down.

property buttonEUp: ControllerButton

Return Controller Button E-Up.

property buttonFDown: ControllerButton

Return Controller Button F-Down.

property buttonFUp: ControllerButton

Return Controler Button F-Up.

property buttonLDown: ControllerButton

Return Controller Button L-Down.

property buttonLUp: ControllerButton

Return Controller Button L-Up.

property buttonRDown: ControllerButton

Return Controller Button R-Down.

property buttonRUp: ControllerButton

Return Controller Button R-Up.

set_deadband(deadband: float)[source]

Set Controller Axis Deadband Percent Threshold.

ROBOT MESH PYTHON B:

Set the value of the controller axis deadband.

(minimum absolute threshold at which position is reported as non-zero)

class vex.controller.ControllerAxis(parent: Controller, axtype: str)[source]

Bases: object

Controller Joystick Axis.

ROBOT MESH PYTHON B:

Use the Axis class to get values from one of the controller’s joysticks.

robotmesh.com/studio/content/docs/vexiq-python_b/html/classvex_1_1_controller_axis.html

position() int[source]

Return Controller Joystick Axis Percent Position.

ROBOT MESH PYTHON B:

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

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

value() int[source]

Return Controller Joystick Axis Raw Value.

ROBOT MESH PYTHON B:

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

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

class vex.controller.ControllerButton(mask: str)[source]

Bases: object

Controller Button.

ROBOT MESH PYTHON B:

Use the Button class to get values from the controller’s buttons.

robotmesh.com/studio/content/docs/vexiq-python_b/html/classvex_1_1_controller_button.html

pressing() bool[source]

Return Controller Button’s pressed status.

ROBOT MESH PYTHON B:

Get the status of a button.

Returns: True if pressed, false otherwise