VEX IQ Python API
Classes | Functions | Variables
vex Namespace Reference

VexIQ Python API B for Robot Mesh. More...

Classes

class  Brain
 Use the Brain class to see battery information, or write to the screen. More...
 
class  BrainButton
 Use the button class to get values from the brain's buttons. More...
 
class  BrainLcd
 
class  BrainSound
 
class  BrakeType
 The defined units for brake values. More...
 
class  Bumper
 
class  ColorHue
 Defined color hue values. More...
 
class  Colorsensor
 
class  Controller
 Use the controller class to get values from the remote controller as well as write to the controller's screen. More...
 
class  ControllerAxis
 Use the axis class to get values from one of the controller's joysticks. More...
 
class  ControllerButton
 Use the button class to get values from the controller's buttons. More...
 
class  Device
 Base class for all Vex IQ devices. More...
 
class  DirectionType
 The defined units for direction values. More...
 
class  DistanceUnits
 The measurement units for distance values. More...
 
class  Enum
 
class  FadeType
 
class  Gyro
 
class  GyroCalibrationType
 
class  Motor
 
class  NoteType
 Musical note to play. More...
 
class  Ports
 
class  RotationUnits
 The measurement units for rotation values. More...
 
class  Sonar
 
class  TimeUnits
 The measurement units for time values. More...
 
class  TorqueUnits
 The measurement units for torque values. More...
 
class  Touchled
 Use this class when programming with the touch LED device. More...
 
class  TurnType
 Left or rigt turn. More...
 
class  VelocityUnits
 The measurement units for velocity values. More...
 

Functions

def wait (time, timeUnits=TimeUnits.SEC)
 Wait for a specific amount of time. More...
 

Variables

int INT29_MAX = 0x1FFFFFFF
 
 DEGREES = RotationUnits.DEG
 
 TURNS = RotationUnits.REV
 
 PERCENT = VelocityUnits.PCT
 
 SECONDS = TimeUnits.SEC
 
 INCHES = DistanceUnits.IN
 
 MM = DistanceUnits.MM
 
 FORWARD = DirectionType.FWD
 
 REVERSE = DirectionType.REV
 
 LEFT = TurnType.LEFT
 
 RIGHT = TurnType.RIGHT
 

Detailed Description

VexIQ Python API B for Robot Mesh.

Robot Mesh Vex V5 Python API.

Copyright 2019 Robot Mesh

Copyright 2020 Robot Mesh

Function Documentation

◆ wait()

def vex.wait (   time,
  timeUnits = TimeUnits.SEC 
)

Wait for a specific amount of time.

Identical to sys.sleep().

Parameters
timeThe length of time to wait
timeUnitsThe units of time (default seconds)

Variable Documentation

◆ INT29_MAX

int vex.INT29_MAX = 0x1FFFFFFF

◆ DEGREES

vex.DEGREES = RotationUnits.DEG

◆ TURNS

vex.TURNS = RotationUnits.REV

◆ PERCENT

vex.PERCENT = VelocityUnits.PCT

◆ SECONDS

vex.SECONDS = TimeUnits.SEC

◆ INCHES

vex.INCHES = DistanceUnits.IN

◆ MM

vex.MM = DistanceUnits.MM

◆ FORWARD

vex.FORWARD = DirectionType.FWD

◆ REVERSE

vex.REVERSE = DirectionType.REV

◆ LEFT

vex.LEFT = TurnType.LEFT

◆ RIGHT

vex.RIGHT = TurnType.RIGHT