|
VEX V5 Python API
|
Inherits vex.Device.
Public Member Functions | |
| def | __init__ (self, controllerType=ControllerType.PRIMARY) |
| Use the controller class to get values from the remote controller as well as write to the controller's screen. More... | |
| def | rumble (self, rumblePattern) |
| Rumbles the controller by a patteren defined by the parameter. More... | |
| def | set_deadband (self, deadband, percentUnits=PercentUnits.PCT) |
| set the value of the controller axis deadband (minimum absolute threshold at which position is reported as non-zero) More... | |
| def | deadband (self, percentUnits=PercentUnits.PCT) |
| get the value of the controller axis deadband More... | |
| def | type (self) |
| Get the device type. More... | |
| def | installed (self) |
| Gets the status of what is installed. More... | |
| def | value (self) |
Public Attributes | |
| buttonL1 | |
| L1 button on the controller. More... | |
| buttonL2 | |
| The "L2" button on the controller. More... | |
| buttonR1 | |
| The "R1" button on the controller. More... | |
| buttonR2 | |
| The "R2" button on the controller. More... | |
| buttonUp | |
| The "Up" button on the controller. More... | |
| buttonDown | |
| The "Down" button on the controller. More... | |
| buttonLeft | |
| The "Left" button on the controller. More... | |
| buttonRight | |
| The "Right" button on the controller. More... | |
| buttonX | |
| The "X" button on the controller. More... | |
| buttonB | |
| The "B" button on the controller. More... | |
| buttonY | |
| The "Y" button on the controller. More... | |
| buttonA | |
| The "A" button on the controller. More... | |
| axis1 | |
| Axis 1 on the controller. More... | |
| axis2 | |
| Axis 2 on the controller. More... | |
| axis3 | |
| Axis 3 on the controller. More... | |
| axis4 | |
| Axis 4 on the controller. More... | |
| screen | |
| Controller's instance of LCD @type vex.ControllerLcd. More... | |
| def vex.Controller.__init__ | ( | self, | |
controllerType = ControllerType.PRIMARY |
|||
| ) |
Use the controller class to get values from the remote controller as well as write to the controller's screen.
Reimplemented from vex.Device.
| def vex.Controller.rumble | ( | self, | |
| rumblePattern | |||
| ) |
Rumbles the controller by a patteren defined by the parameter.
Dots equal short while dashes equal long.
| rumblePattern | A string that consists of dots and dashes that represent the rumble patteren. |
| def vex.Controller.set_deadband | ( | self, | |
| deadband, | |||
percentUnits = PercentUnits.PCT |
|||
| ) |
set the value of the controller axis deadband (minimum absolute threshold at which position is reported as non-zero)
| def vex.Controller.deadband | ( | self, | |
percentUnits = PercentUnits.PCT |
|||
| ) |
get the value of the controller axis deadband
|
inherited |
Get the device type.
|
inherited |
Gets the status of what is installed.
|
inherited |
| vex.Controller.buttonL1 |
L1 button on the controller.
@type vex.ControllerButton
| vex.Controller.buttonL2 |
The "L2" button on the controller.
@type vex.ControllerButton
| vex.Controller.buttonR1 |
The "R1" button on the controller.
@type vex.ControllerButton
| vex.Controller.buttonR2 |
The "R2" button on the controller.
@type vex.ControllerButton
| vex.Controller.buttonUp |
The "Up" button on the controller.
@type vex.ControllerButton
| vex.Controller.buttonDown |
The "Down" button on the controller.
@type vex.ControllerButton
| vex.Controller.buttonLeft |
The "Left" button on the controller.
@type vex.ControllerButton
| vex.Controller.buttonRight |
The "Right" button on the controller.
@type vex.ControllerButton
| vex.Controller.buttonX |
The "X" button on the controller.
@type vex.ControllerButton
| vex.Controller.buttonB |
The "B" button on the controller.
@type vex.ControllerButton
| vex.Controller.buttonY |
The "Y" button on the controller.
@type vex.ControllerButton
| vex.Controller.buttonA |
The "A" button on the controller.
@type vex.ControllerButton
| vex.Controller.axis1 |
Axis 1 on the controller.
@type vex.ControllerAxis
| vex.Controller.axis2 |
Axis 2 on the controller.
@type vex.ControllerAxis
| vex.Controller.axis3 |
Axis 3 on the controller.
@type vex.ControllerAxis
| vex.Controller.axis4 |
Axis 4 on the controller.
@type vex.ControllerAxis
| vex.Controller.screen |
Controller's instance of LCD @type vex.ControllerLcd.
1.8.15