vex.controller.axis module

Controller Axes (A, B, C, D).

class vex.controller.axis.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.