VEXcode IQ C++ Unofficial documentation for version 3.0.4.1
Loading...
Searching...
No Matches
vex Namespace Reference

Bumper switch device class
More...

Classes

class  brain
 
class  bumper
 
class  colorsensor
 
class  console
 
class  controller
 
class  device
 
class  devices
 Use the device class to get information about all of the vex devices plugged into the IQ. More...
 
class  distance
 Use the distance class to control the distance sensor. More...
 
class  drivetrain
 
class  event
 
class  generic
 
class  gyro
 
class  motor
 Use the motor class to control motor devices. More...
 
class  motor_group
 
class  mutex
 Use this class to create and control mutexes. More...
 
class  optical
 Use the optical class to control the optical sensor. More...
 
class  pneumatic
 
class  safearray
 
class  semaphore
 Use this class to synchronize access to resources. More...
 
class  smartdrive
 
class  sonar
 
class  task
 Use this class to create and control tasks. More...
 
class  thread
 Use this class to create and control threads. More...
 
class  timer
 Use the timer class to create timers for your program. More...
 
class  touchled
 
class  vision
 Use this class when programming the vision sensor. More...
 

Enumerations

enum class  percentUnits { pct = 0 }
 
enum class  timeUnits { sec , msec }
 
enum class  currentUnits { amp }
 
enum class  voltageUnits { volt , mV }
 
enum class  powerUnits { watt }
 
enum class  torqueUnits { Nm , InLb }
 
enum class  rotationUnits { deg , rev , raw = 99 }
 
enum class  velocityUnits { pct = (int)percentUnits::pct , rpm , dps }
 
enum class  distanceUnits { mm , in , cm , counts }
 
enum class  temperatureUnits { celsius , fahrenheit }
 
enum class  directionType { fwd = 0 , rev , undefined }
 
enum class  turnType { left , right }
 
enum class  brakeType { coast = 0 , brake = 1 , hold = 2 , undefined }
 
enum class  sizeType { none , small , medium , large }
 
enum class  colorType {
  none , red , green , blue ,
  white , yellow , orange , purple ,
  cyan , red_violet , violet , blue_violet ,
  blue_green , yellow_green , yellow_orange , red_orange ,
  black , transparent
}
 
enum class  fadeType { off , slow , fast }
 
enum class  gyroCalibrationType { calNormal , calSlow , calExtended }
 
enum class  rateUnits { dps , rps }
 
enum class  ledState { off , on , blink }
 
enum class  soundType {
  siren = 0 , wrongWay = 1 , wrongWaySlow = 2 , fillup = 3 ,
  headlightsOn = 4 , headlightsOff = 5 , tollBooth = 6 , alarm = 7 ,
  tada = 8 , doorClose = 9 , ratchet = 10 , wrench = 11 ,
  siren2 = 12 , ratchet2 = 13 , alarm2 = 14 , powerDown = 15
}
 
enum class  gestureType {
  none , up , down , left ,
  right
}
 The defined units for optical sensor gesture types. More...
 
enum class  cylinderType { cylinder1 = 0 , cylinder2 = 1 , cylinderAll = 0xff }
 The defined types for pneumatic cylinders. More...
 

Functions

void wait (double time, timeUnits units)
 
void vexSystemExitRequest (void)
 

Variables

const rotationUnits degrees
 
const rotationUnits turns
 
const percentUnits percent
 
const timeUnits seconds
 
const distanceUnits inches
 
const distanceUnits mm
 
const directionType forward
 
const directionType reverse
 
const turnType left
 
const turnType right
 
const colorType black
 
const colorType white
 
const colorType red
 
const colorType green
 
const colorType blue
 
const colorType yellow
 
const colorType orange
 
const colorType purple
 
const colorType cyan
 
const colorType transparent
 
const colorType red_violet
 
const colorType violet
 
const colorType blue_violet
 
const colorType blue_green
 
const colorType yellow_green
 
const colorType yellow_orange
 
const colorType red_orange
 
const fadeType slow
 
const fadeType fast
 
const fadeType off
 
const gyroCalibrationType calNormal
 
const gyroCalibrationType calSlow
 
const gyroCalibrationType calExtended
 
const soundType siren
 
const soundType wrongWay
 
const soundType wrongWaySlow
 
const soundType fillup
 
const soundType headlightsOn
 
const soundType headlightsOff
 
const soundType tollBooth
 
const soundType alarm
 
const soundType tada
 
const soundType doorClose
 
const soundType ratchet
 
const soundType wrench
 
const soundType siren2
 
const soundType ratchet2
 
const soundType alarm2
 
const soundType powerDown
 
const cylinderType cylinder1
 
const cylinderType cylinder2
 
const cylinderType cylinderAll
 
const int32_t PORT1
 
const int32_t PORT2
 
const int32_t PORT3
 
const int32_t PORT4
 
const int32_t PORT5
 
const int32_t PORT6
 
const int32_t PORT7
 
const int32_t PORT8
 
const int32_t PORT9
 
const int32_t PORT10
 
const int32_t PORT11
 
const int32_t PORT12
 
const percentUnits pct
 
const timeUnits sec
 
const timeUnits msec
 
const voltageUnits volt
 
const currentUnits amp
 
const powerUnits watt
 
const torqueUnits Nm
 
const torqueUnits InLb
 
const rotationUnits deg
 
const rotationUnits rev
 
const velocityUnits rpm
 
const velocityUnits dps
 
const temperatureUnits celsius
 
const temperatureUnits fahrenheit
 
const directionType fwd
 
const brakeType coast
 
const brakeType brake
 
const brakeType hold
 

Detailed Description

Bumper switch device class

Vision sensor device class

Touch led device class

Sonar sensor device class

Pneumatic device class

Motor device class

Gyro sensor device class

generic sensor device class

All devices class

a safe array template

device class

IQ Color sensor device class

Enumeration Type Documentation

◆ brakeType

enum class vex::brakeType
strong

Definition at line 85 of file vex_units.h.

◆ colorType

enum class vex::colorType
strong

Definition at line 99 of file vex_units.h.

◆ currentUnits

enum class vex::currentUnits
strong

Definition at line 32 of file vex_units.h.

◆ cylinderType

enum class vex::cylinderType
strong

The defined types for pneumatic cylinders.

Definition at line 178 of file vex_units.h.

◆ directionType

enum class vex::directionType
strong

Definition at line 74 of file vex_units.h.

◆ distanceUnits

enum class vex::distanceUnits
strong

Definition at line 62 of file vex_units.h.

◆ fadeType

enum class vex::fadeType
strong

Definition at line 122 of file vex_units.h.

◆ gestureType

enum class vex::gestureType
strong

The defined units for optical sensor gesture types.

Definition at line 167 of file vex_units.h.

◆ gyroCalibrationType

enum class vex::gyroCalibrationType
strong

Definition at line 128 of file vex_units.h.

◆ ledState

enum class vex::ledState
strong

Definition at line 139 of file vex_units.h.

◆ percentUnits

enum class vex::percentUnits
strong

Definition at line 23 of file vex_units.h.

◆ powerUnits

enum class vex::powerUnits
strong

Definition at line 41 of file vex_units.h.

◆ rateUnits

enum class vex::rateUnits
strong

Definition at line 134 of file vex_units.h.

◆ rotationUnits

enum class vex::rotationUnits
strong

Definition at line 50 of file vex_units.h.

◆ sizeType

enum class vex::sizeType
strong

Definition at line 92 of file vex_units.h.

◆ soundType

enum class vex::soundType
strong

Definition at line 145 of file vex_units.h.

◆ temperatureUnits

enum class vex::temperatureUnits
strong

Definition at line 69 of file vex_units.h.

◆ timeUnits

enum class vex::timeUnits
strong

Definition at line 27 of file vex_units.h.

◆ torqueUnits

enum class vex::torqueUnits
strong

Definition at line 45 of file vex_units.h.

◆ turnType

enum class vex::turnType
strong

Definition at line 80 of file vex_units.h.

◆ velocityUnits

enum class vex::velocityUnits
strong

Definition at line 56 of file vex_units.h.

◆ voltageUnits

enum class vex::voltageUnits
strong

Definition at line 36 of file vex_units.h.