|
VEX EDR Python API
|
Vex Cortex controller Python API for Robot Mesh. More...
Classes | |
| class | AnalogSensor |
| class | AngleSensor |
| Config Angle sensor. More... | |
| class | Bumper |
| class | CompetitionSwitchState |
| State of the Competition Switch. More... | |
| class | DebugOutputType |
| Type of debug output. More... | |
| class | DigitalInput |
| Config Digital input pin. More... | |
| class | DigitalOutput |
| Config Digital output pin with on/off state. More... | |
| class | Encoder |
| Config Encoder: counts ticks. More... | |
| class | EncoderMotor |
| Config Encoder motor that tracks distance covered. More... | |
| class | GyroSensor |
| Config Gyro. More... | |
| class | Joystick |
| Config VexNet joystick More... | |
| class | LcdDisplay |
| Config LCD Display device for Vex with 2 line display and 3 buttons. More... | |
| class | LightSensor |
| Config Light intensity sensor. More... | |
| class | LimitSwitch |
| class | LineTracker |
| Config Line tracker. More... | |
| class | Motor |
| Config Motor with a power setting. More... | |
| class | Serial |
| class | SerialParam |
| class | Servo |
| Config Servo motor More... | |
| class | UltrasonicSensor |
| Config Ultrasonic distance sensor. More... | |
Functions | |
| def | battery_voltage () |
| Get main battery voltage, in volts. More... | |
| def | battery_backup_voltage () |
| Get backup battery voltage, in volts. More... | |
| def | debug_output (debug_output_type) |
| Set debug output type. More... | |
| def | run_driver (f) |
| Run the given function in a separate thread in DRIVER ONLY competition mode. More... | |
| def | run_autonomous (f) |
| Run the given function in a separate thread in AUTONOMOUS ONLY competition mode. More... | |
| def | competition_switch () |
| Returns state of the competition switch, as one of the constants in CompetitionSwitchState. More... | |
Variables | |
| int | UNIT_INCH = 1 |
| int | UNIT_CM = 2 |
| int | UNIT_MM = 3 |
| int | POWER_UNCHANGED_FWD = 255 |
| int | POWER_UNCHANGED_REV = -255 |
Vex Cortex controller Python API for Robot Mesh.
Copyright 2013 Robot Mesh
| def vex.battery_voltage | ( | ) |
Get main battery voltage, in volts.
| def vex.battery_backup_voltage | ( | ) |
Get backup battery voltage, in volts.
| def vex.debug_output | ( | debug_output_type | ) |
Set debug output type.
| debug_output_type | DebugOutput.AUTO|SERIAL|LCD|DISABLED |
| def vex.run_driver | ( | f | ) |
Run the given function in a separate thread in DRIVER ONLY competition mode.
| f | name of the function to run in a new thread |
| def vex.run_autonomous | ( | f | ) |
Run the given function in a separate thread in AUTONOMOUS ONLY competition mode.
| f | name of the function to run in a new thread |
| def vex.competition_switch | ( | ) |
Returns state of the competition switch, as one of the constants in CompetitionSwitchState.
| int vex.UNIT_INCH = 1 |
| int vex.UNIT_CM = 2 |
| int vex.UNIT_MM = 3 |
| int vex.POWER_UNCHANGED_FWD = 255 |
| int vex.POWER_UNCHANGED_REV = -255 |
1.8.15