VEXcode IQ C++ Unofficial documentation for version 3.0.4.1
Loading...
Searching...
No Matches
vex_units.h
Go to the documentation of this file.
1/*----------------------------------------------------------------------------*/
2/* */
3/* Copyright (c) Innovation First 2017, All rights reserved. */
4/* */
5/* Module: vex_units.h */
6/* Author: James Pearman */
7/* Created: 5 July 2017 */
8/* */
9/* Revisions: */
10/* V1.00 TBD - Initial release */
11/* */
12/*----------------------------------------------------------------------------*/
13
14#ifndef VEX_UNITS_H
15#define VEX_UNITS_H
16
17/*-----------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace vex {
23 enum class percentUnits {
24 pct = 0
25 };
26
27 enum class timeUnits {
28 sec,
29 msec
30 };
31
32 enum class currentUnits {
33 amp
34 };
35
36 enum class voltageUnits {
37 volt,
38 mV
39 };
40
41 enum class powerUnits {
42 watt
43 };
44
45 enum class torqueUnits {
46 Nm,
47 InLb
48 };
49
50 enum class rotationUnits {
51 deg,
52 rev,
53 raw = 99
54 };
55
56 enum class velocityUnits {
57 pct = (int)percentUnits::pct,
58 rpm,
59 dps
60 };
61
62 enum class distanceUnits {
63 mm,
64 in,
65 cm,
66 counts
67 };
68
69 enum class temperatureUnits {
70 celsius,
71 fahrenheit
72 };
73
74 enum class directionType {
75 fwd = 0,
76 rev,
77 undefined
78 };
79
80 enum class turnType {
81 left,
82 right
83 };
84
85 enum class brakeType {
86 coast = 0,
87 brake = 1,
88 hold = 2,
89 undefined
90 };
91
92 enum class sizeType {
93 none,
94 small,
95 medium,
96 large
97 };
98
99 enum class colorType {
100 none,
101 red,
102 green,
103 blue,
104 white,
105 yellow,
106 orange,
107 purple,
108 cyan,
109
110 red_violet,
111 violet,
112 blue_violet,
113 blue_green,
114 yellow_green,
115 yellow_orange,
116 red_orange,
117
118 black,
119 transparent
120 };
121
122 enum class fadeType {
123 off,
124 slow,
125 fast
126 };
127
128 enum class gyroCalibrationType {
129 calNormal,
130 calSlow,
131 calExtended
132 };
133
134 enum class rateUnits {
135 dps,
136 rps
137 };
138
139 enum class ledState {
140 off,
141 on,
142 blink
143 };
144
145 enum class soundType {
146 siren = 0,
147 wrongWay = 1,
148 wrongWaySlow = 2,
149 fillup = 3,
150 headlightsOn = 4,
151 headlightsOff = 5,
152 tollBooth = 6,
153 alarm = 7,
154 tada = 8,
155 doorClose = 9,
156 ratchet = 10,
157 wrench = 11,
158 siren2 = 12,
159 ratchet2 = 13,
160 alarm2 = 14,
161 powerDown = 15
162 };
163
167 enum class gestureType {
168 none,
169 up,
170 down,
171 left,
172 right
173 };
174
178 enum class cylinderType {
179 cylinder1 = 0,
180 cylinder2 = 1,
181 cylinderAll = 0xff
182 };
183};
184
185#endif // VEX_UNITS_H
Bumper switch device class
Definition vex_brain.h:24
cylinderType
The defined types for pneumatic cylinders.
Definition vex_units.h:178
gestureType
The defined units for optical sensor gesture types.
Definition vex_units.h:167