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

Robot Mesh Vex V5 Python API. More...

Classes

class  Accelerometer
 
class  AnalogIn
 
class  AnalogUnits
 A unit of analog units. More...
 
class  AxisType
 Unit for inertial sensor axis. More...
 
class  Bitmap
 brief Bitmap that can be drawn using brain.Screen.drawBitmap More...
 
class  Brain
 
class  BrainBattery
 
class  BrainLcd
 Use the LCD class to write or draw to the LCD The LCD screen has a resolution of 480x240 pixels. More...
 
class  BrainSDCard
 
class  BrakeType
 A unit of brake mode. More...
 
class  Bumper
 
class  Color
 
class  Competition
 
class  Controller
 
class  ControllerAxis
 
class  ControllerButton
 
class  ControllerLcd
 
class  ControllerType
 
class  CurrentUnits
 A unit of electrical current. More...
 
class  DetectionMode
 
class  Device
 Use the device class to get information about a vex device plugged into the V5. More...
 
class  Devices
 Use the device class to get information about all of the vex devices plugged into the V5. More...
 
class  DigitalIn
 
class  DigitalOut
 
class  DirectionType
 A unit of direction. More...
 
class  Distance
 Use the distance class to control the distance sensor. More...
 
class  DistanceUnits
 A unit of distance. More...
 
class  Encoder
 
class  Enum
 
class  Eyes
 
class  Font
 A unit of font type. More...
 
class  GearSetting
 A unit of gear settings. More...
 
class  Gyro
 
class  Inertial
 Use the inertial class to control the inertial sensor. More...
 
class  Led
 
class  LedMode
 
class  LedState
 The defined units for optical sensor led state. More...
 
class  Light
 
class  Limit
 
class  Line
 
class  Motor
 
class  Motor29
 
class  MotorVictor
 
class  Optical
 Use the optical class to control the optical sensor. More...
 
class  OrientationType
 Unit for inertial sensor orientation. More...
 
class  PercentUnits
 A unit of percentage. More...
 
class  Pneumatics
 
class  Ports
 
class  Pot
 
class  PowerUnits
 A unit of power. More...
 
class  PwmOut
 
class  Rotation
 Use the rotation class to control absolute encoder devices. More...
 
class  RotationUnits
 A unit of rotation. More...
 
class  Serial
 
class  Servo
 
class  SizeType
 The defined units for distance sensor object size. More...
 
class  Sonar
 
class  TemperatureUnits
 The measurement units for temperature values. More...
 
class  Timer
 
class  TimeUnits
 A unit of time. More...
 
class  TorqueUnits
 A unit of torque. More...
 
class  TriDevice
 
class  Triport
 
class  TriportPort
 
class  TurnType
 Left or right turn. More...
 
class  V5DeviceType
 
class  VelocityUnits
 A unit of velocity. More...
 
class  Vision
 Class representing Vision Sensor device. More...
 
class  VisionCode
 
class  VisionObject
 
class  VisionSignature
 
class  VoltageUnits
 The measurement units for voltage values. More...
 
class  WhiteBalanceMode
 
class  WifiMode
 

Functions

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

Variables

int SYSTEM_DISPLAY_WIDTH = 480
 
int SYSTEM_DISPLAY_HEIGHT = 272
 
int STATUS_BAR_HEIGHT = 32
 
 DEGREES = RotationUnits.DEG
 
 TURNS = RotationUnits.REV
 
 PERCENT = PercentUnits.PCT
 
 SECONDS = TimeUnits.SEC
 
 INCHES = DistanceUnits.IN
 
 MM = DistanceUnits.MM
 
 FORWARD = DirectionType.FWD
 
 REVERSE = DirectionType.REV
 
 LEFT = TurnType.LEFT
 
 RIGHT = TurnType.RIGHT
 
 XAXIS = AxisType.XAXIS
 
 YAXIS = AxisType.YAXIS
 
 ZAXIS = AxisType.ZAXIS
 
 ROLL = OrientationType.ROLL
 
 PITCH = OrientationType.PITCH
 
 YAW = OrientationType.YAW
 
 MONO_M = Font.MONO_20
 
 MONO_L = Font.MONO_30
 
 MONO_XL = Font.MONO_40
 
 MONO_XXL = Font.MONO_60
 
 MONO_S = Font.MONO_15
 
 MONO_XS = Font.MONO_12
 
 PROP_M = Font.PROP_20
 
 PROP_L = Font.PROP_30
 
 PROP_XL = Font.PROP_40
 
 PROP_XXL = Font.PROP_60
 
 PRIMARY = ControllerType.PRIMARY
 
 PARTNER = ControllerType.PARTNER
 
string RUMBLE_LONG = "----"
 
string RUMBLE_SHORT = "...."
 
string RUMBLE_PULSE = "-.-."
 

Detailed Description

Robot Mesh Vex V5 Python API.

Copyright 2018 Robot Mesh

Copyright 2020 Robot Mesh

Function Documentation

◆ staticmethod()

def vex.staticmethod (   fn)

◆ 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

◆ SYSTEM_DISPLAY_WIDTH

int vex.SYSTEM_DISPLAY_WIDTH = 480

◆ SYSTEM_DISPLAY_HEIGHT

int vex.SYSTEM_DISPLAY_HEIGHT = 272

◆ STATUS_BAR_HEIGHT

int vex.STATUS_BAR_HEIGHT = 32

◆ DEGREES

vex.DEGREES = RotationUnits.DEG

◆ TURNS

vex.TURNS = RotationUnits.REV

◆ PERCENT

vex.PERCENT = PercentUnits.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

◆ XAXIS

vex.XAXIS = AxisType.XAXIS

◆ YAXIS

vex.YAXIS = AxisType.YAXIS

◆ ZAXIS

vex.ZAXIS = AxisType.ZAXIS

◆ ROLL

vex.ROLL = OrientationType.ROLL

◆ PITCH

vex.PITCH = OrientationType.PITCH

◆ YAW

vex.YAW = OrientationType.YAW

◆ MONO_M

vex.MONO_M = Font.MONO_20

◆ MONO_L

vex.MONO_L = Font.MONO_30

◆ MONO_XL

vex.MONO_XL = Font.MONO_40

◆ MONO_XXL

vex.MONO_XXL = Font.MONO_60

◆ MONO_S

vex.MONO_S = Font.MONO_15

◆ MONO_XS

vex.MONO_XS = Font.MONO_12

◆ PROP_M

vex.PROP_M = Font.PROP_20

◆ PROP_L

vex.PROP_L = Font.PROP_30

◆ PROP_XL

vex.PROP_XL = Font.PROP_40

◆ PROP_XXL

vex.PROP_XXL = Font.PROP_60

◆ PRIMARY

vex.PRIMARY = ControllerType.PRIMARY

◆ PARTNER

vex.PARTNER = ControllerType.PARTNER

◆ RUMBLE_LONG

string vex.RUMBLE_LONG = "----"

◆ RUMBLE_SHORT

string vex.RUMBLE_SHORT = "...."

◆ RUMBLE_PULSE

string vex.RUMBLE_PULSE = "-.-."