-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_ref.py
51 lines (42 loc) · 846 Bytes
/
config_ref.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from enum import Enum
class SerialRef(Enum):
SERIAL = 'Serial'
DEVICE = 'device'
PORT = 'port'
BOUNDRATE = 'boundrate'
BOOT_TIME = 'boot_time'
class SerialCmd(Enum):
READ = 'r'
WRITE = 'w'
EXECUTE = 'x'
class UnitRef(Enum):
UNITS = 'Units'
ORIN_SCALE = 'orin_scale'
ACEL_SCALE = 'acel_scale'
GYRO_SCALE = 'gyro_scale'
class GeneralCmdRef(Enum):
START_POST = '#o1'
STOP_POST = '#o0'
OUTPUT_FORMAT = '#ox'
class CalibRef(Enum):
CALIB = 'Calib'
VAL = 'Val'
CMD = 'Cmd'
class YAPRGRef(Enum):
HEAD_SEP = '='
ELEM_SEP = ','
ORIN_X = 0
ORIN_Y = 1
ORIN_Z = 2
ACEL_X = 3
ACEL_Y = 4
ACEL_Z = 5
GYRO_X = 6
GYRO_Y = 7
GYRO_Z = 8
class AxisRef(Enum):
X = 'x'
Y = 'y'
Z = 'z'
class EncodingFormat(Enum):
UTF_8 = "utf-8"