Enumerations
- class quanser.devices.enumerations.KeyState
The state of a key.
- KEY_DOWN = 32768
Key is down.
- KEY_PRESSED = 32769
Key was just pressed.
- KEY_UP = 0
Key is up.
- class quanser.devices.enumerations.LCDAccess
The LCD access mode.
- ASYNCHRONOUS = 1
Multiple processes can access the LCD at the same time but hold a global mutex while actually writing to the display. Skips write if mutex already held by another process.
- EXCLUSIVE = 2
Only one process can access the LCD at a time (global mutex is held as long as the LCD is open).
- SHARED = 0
Multiple processes can access the LCD at the same time but hold a global mutex while actually writing to the display. Waits for mutex to be released.
- class quanser.devices.enumerations.RangingDistance
The ranging distance.
- LONG = 2
Long ranging distance. Uses the boost or sensitivity scan modes, if available, since they have 28 m range. Gives priority to the sensitivity mode.
- MEDIUM = 1
Medium ranging distance. Uses the express mode, which has 16 m range and more data points (4000 sps).
- SHORT = 0
Short ranging distance. For the short range, use the legacy mode since it has 1/4 mm distance measurements or the stability mode. Give priority to the stability mode since it is newer and provides more data points.
- class quanser.devices.enumerations.RangingMeasurementMode
The ranging measurement mode.
- INTERPOLATED = 1
Returns the number of measurements, N, requested. Angles will start at zero and be 360/N apart. Raw measurements will be interpolated to estimate distance at each angle.
- NORMAL = 0
Return actual measurement data. Number of measurements will vary and angles will not be consistent between scans. Angles will start close to zero.
- class quanser.devices.enumerations.RangingSensorType
The sensor type.
- INVALID = 0
Invalid sensor type.
- RPLIDAR = 2
Slamtec RPLidar 2D LIDAR sensor.
- VL53L1 = 1
ST Microelectronics VL31L1 time-of-flight sensor.
- class quanser.devices.enumerations.VirtualKeyCodes
A virtual key code.
- VK_0 = 48
0 key.
- VK_1 = 49
1 key.
- VK_2 = 50
2 key.
- VK_3 = 51
3 key.
- VK_4 = 52
4 key.
- VK_5 = 53
5 key.
- VK_6 = 54
6 key.
- VK_7 = 55
7 key.
- VK_8 = 56
8 key.
- VK_9 = 57
9 key.
- VK_A = 65
A key.
- VK_ACCEPT = 30
IME accept.
- VK_ADD = 107
Add key.
- VK_APPS = 93
Application key.
- VK_ATTN = 246
Attn key.
- VK_B = 66
B key.
- VK_BACK = 8
Backspace key.
- VK_BROWSER_BACK = 166
Browser Back key.
- VK_BROWSER_FAVORITES = 171
Browser Favourites key.
- VK_BROWSER_FORWARD = 167
Browser Forward key.
- VK_BROWSER_HOME = 172
Browser Start and Home key.
- VK_BROWSER_REFRESH = 168
Browser Refresh key.
- VK_BROWSER_SEARCH = 170
Browser Search key.
- VK_BROWSER_STOP = 169
Browser Stop key.
- VK_C = 67
C key.
- VK_CANCEL = 3
Control-break processing.
- VK_CAPITAL = 20
Caps lock key.
- VK_CLEAR = 12
Clear key.
- VK_CONTROL = 17
Ctrl key.
- VK_CONVERT = 28
IME convert.
- VK_CRSEL = 247
CrSel key.
- VK_D = 68
D key.
- VK_DECIMAL = 110
Decimal key.
- VK_DELETE = 46
Delete key.
- VK_DIVIDE = 111
Divide key.
- VK_DOWN = 40
Down arrow key.
- VK_E = 69
E key.
- VK_END = 35
End key.
- VK_EREOF = 249
Erase EOF key.
- VK_ESCAPE = 27
Esc key.
- VK_EXECUTE = 43
Execute key.
- VK_EXSEL = 248
ExSel key.
- VK_F = 70
F key.
- VK_F1 = 112
F1 key.
- VK_F10 = 121
F10 key.
- VK_F11 = 122
F11 key.
- VK_F12 = 123
F12 key.
- VK_F13 = 124
F13 key.
- VK_F14 = 125
F14 key.
- VK_F15 = 126
F15 key.
- VK_F16 = 127
F16 key.
- VK_F17 = 128
F17 key.
- VK_F18 = 129
F18 key.
- VK_F19 = 130
F19 key.
- VK_F2 = 113
F2 key.
- VK_F20 = 131
F20 key.
- VK_F21 = 132
F21 key.
- VK_F22 = 133
F22 key.
- VK_F23 = 134
F23 key.
- VK_F24 = 135
F24 key.
- VK_F3 = 114
F3 key.
- VK_F4 = 115
F4 key.
- VK_F5 = 116
F5 key.
- VK_F6 = 117
F6 key.
- VK_F7 = 118
F7 key.
- VK_F8 = 119
F8 key.
- VK_F9 = 120
F9 key.
- VK_FINAL = 24
IME final mode.
- VK_G = 71
G key.
- VK_H = 72
H key.
- VK_HANGUL = 21
IME Hangul mode.
- VK_HANJA = 25
IME Hanja mode.
- VK_HELP = 47
Help key.
- VK_HOME = 36
Home key.
- VK_I = 73
I key.
- VK_IME_OFF = 26
IME Off.
- VK_IME_ON = 22
IME On.
- VK_INSERT = 45
Insert key.
- VK_J = 74
J key.
- VK_JUNJA = 23
IME Junja mode.
- VK_K = 75
K key.
- VK_KANA = 21
IME Kana mode.
- VK_KANJI = 25
IME Kanji mode.
- VK_L = 76
L key.
- VK_LAUNCH_APP1 = 182
Start Application 1 key.
- VK_LAUNCH_APP2 = 183
Start Application 2 key.
- VK_LAUNCH_MAIL = 180
Start Mail key.
- VK_LAUNCH_MEDIA_SELECT = 181
Select Media key.
- VK_LBUTTON = 1
Left mouse button.
- VK_LCONTROL = 162
Left Ctrl key.
- VK_LEFT = 37
Left arrow key.
- VK_LMENU = 164
Left Alt key.
- VK_LSHIFT = 160
Left Shift key.
- VK_LWIN = 91
Left Windows logo key.
- VK_M = 77
M key.
- VK_MBUTTON = 4
Middle mouse button.
- VK_MEDIA_NEXT_TRACK = 176
Next Track key.
- VK_MEDIA_PLAY_PAUSE = 179
Play/Pause Media key.
- VK_MEDIA_PREV_TRACK = 177
Previous Track key.
- VK_MEDIA_STOP = 178
Stop Media key.
- VK_MENU = 18
Alt key.
- VK_MODECHANGE = 31
IME mode change request.
- VK_MULTIPLY = 106
Multiply key.
- VK_N = 78
N key.
- VK_NEXT = 34
Page down key.
- VK_NONAME = 252
Reserved.
- VK_NONCONVERT = 29
IME nonconvert.
- VK_NUMLOCK = 144
Num lock key.
- VK_NUMPAD0 = 96
Numeric keypad 0 key.
- VK_NUMPAD1 = 97
Numeric keypad 1 key.
- VK_NUMPAD2 = 98
Numeric keypad 2 key.
- VK_NUMPAD3 = 99
Numeric keypad 3 key.
- VK_NUMPAD4 = 100
Numeric keypad 4 key.
- VK_NUMPAD5 = 101
Numeric keypad 5 key.
- VK_NUMPAD6 = 102
Numeric keypad 6 key.
- VK_NUMPAD7 = 103
Numeric keypad 7 key.
- VK_NUMPAD8 = 104
Numeric keypad 8 key.
- VK_NUMPAD9 = 105
Numeric keypad 9 key.
- VK_O = 79
O key.
- VK_OEM_1 = 186
Used for miscellaneous characters; it can vary by keyboard. For the USB standard keyboard, the
;:
key.
- VK_OEM_102 = 226
The
<>
keys on the US standard keyboard, or the\|
key on the non-US 102-key keyboard.
- VK_OEM_2 = 191
Used for miscellaneous characters; it can vary by keyboard. For the USB standard keyboard, the
/?
key.
- VK_OEM_3 = 192
Used for miscellaneous characters; it can vary by keyboard. For the USB standard keyboard, the
`~
key.
- VK_OEM_4 = 219
Used for miscellaneous characters; it can vary by keyboard. For the USB standard keyboard, the
[{
key.
- VK_OEM_5 = 220
Used for miscellaneous characters; it can vary by keyboard. For the USB standard keyboard, the
\|
key.
- VK_OEM_6 = 221
Used for miscellaneous characters; it can vary by keyboard. For the USB standard keyboard, the
]}
key.
- VK_OEM_7 = 222
Used for miscellaneous characters; it can vary by keyboard. For the USB standard keyboard, the
'"
key.
- VK_OEM_8 = 223
Used for miscellaneous characters; it can vary by keyboard.
- VK_OEM_AX = 225
The AX key on a Japanese AX keyboard.
- VK_OEM_CLEAR = 254
OEM Clear key.
- VK_OEM_COMMA = 188
For any country/region, the
,
key.
- VK_OEM_MINUS = 189
For any country/region, the
-
key.
- VK_OEM_NEC_EQUAL = 146
Numeric keypad = key.
- VK_OEM_PERIOD = 190
For any country/region, the
.
key.
- VK_OEM_PLUS = 187
For any country/region, the
+
key.
- VK_P = 80
P key.
- VK_PA1 = 253
PA1 key.
- VK_PACKET = 231
Used to pass Unicode characters as if they were keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods.
- VK_PAUSE = 19
Pause key.
- VK_PLAY = 250
Play key.
- VK_PRINT = 42
Print key.
- VK_PRIOR = 33
Page up key.
- VK_PROCESSKEY = 229
IME PROCESS key.
- VK_Q = 81
Q key.
- VK_R = 82
R key.
- VK_RBUTTON = 2
Right mouse button.
- VK_RCONTROL = 163
Right Ctrl key.
- VK_RETURN = 13
Enter key.
- VK_RIGHT = 39
Right arrow key.
- VK_RMENU = 165
Right Alt key.
- VK_RSHIFT = 161
Right Shift key.
- VK_RWIN = 92
Right Windows logo key.
- VK_S = 83
S key.
- VK_SCROLL = 145
Scroll lock key.
- VK_SELECT = 41
Select key.
- VK_SEPARATOR = 108
Separator key.
- VK_SHIFT = 16
Shift key.
- VK_SLEEP = 95
Computer Sleep key.
- VK_SNAPSHOT = 44
Print screen key.
- VK_SPACE = 32
Spacebar key.
- VK_SUBTRACT = 109
Subtract key.
- VK_T = 84
T key.
- VK_TAB = 9
Tab key.
- VK_U = 85
U key.
- VK_UP = 38
Up arrow key.
- VK_V = 86
V key.
- VK_VOLUME_DOWN = 174
Volume Down key.
- VK_VOLUME_MUTE = 173
Volume Mute key.
- VK_VOLUME_UP = 175
Volume Up key.
- VK_W = 87
W key.
- VK_X = 88
X key.
- VK_XBUTTON1 = 5
X1 mouse button.
- VK_XBUTTON2 = 6
X2 mouse button.
- VK_Y = 89
Y key.
- VK_Z = 90
Z key.
- VK_ZOOM = 251
Zoom key.