|
VEX V5 Python API
|
Public Member Functions | |
| def | __init__ (self) |
| Use this class to set up your program for competitions. More... | |
| def | is_enabled (self) |
| Gets the status of your program. More... | |
| def | is_driver_control (self) |
| Gets the status of the Driver Control period. More... | |
| def | is_autonomous (self) |
| Gets the status of the Autonomous period. More... | |
| def | is_competition_switch (self) |
| Gets the status of the Competition Control Switch being plugged into the robot. More... | |
| def | is_field_control (self) |
| Gets the status of the Field Control System being plugged into the robot. More... | |
| def | autonomous (self, f) |
| Calls a function on a new thread when the autonomous period starts. More... | |
| def | drivercontrol (self, f) |
| Calls back a function on a new thread when the driver control period starts. More... | |
| def vex.Competition.__init__ | ( | self | ) |
Use this class to set up your program for competitions.
| def vex.Competition.is_enabled | ( | self | ) |
Gets the status of your program.
| def vex.Competition.is_driver_control | ( | self | ) |
Gets the status of the Driver Control period.
| def vex.Competition.is_autonomous | ( | self | ) |
Gets the status of the Autonomous period.
| def vex.Competition.is_competition_switch | ( | self | ) |
Gets the status of the Competition Control Switch being plugged into the robot.
| def vex.Competition.is_field_control | ( | self | ) |
Gets the status of the Field Control System being plugged into the robot.
| def vex.Competition.autonomous | ( | self, | |
| f | |||
| ) |
Calls a function on a new thread when the autonomous period starts.
That thread is interrupted when the autonomous period ends.
| f | A reference to a function. Only one reference is stored, subsequent calls override any previous callbacks. |
| def vex.Competition.drivercontrol | ( | self, | |
| f | |||
| ) |
Calls back a function on a new thread when the driver control period starts.
That thread is interrupted when the driver control period ends.
| f | A reference to a function. Only one reference is stored, subsequent calls override any previous callbacks. |
1.8.15