-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.py
93 lines (79 loc) · 2.25 KB
/
constants.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
"""
This file contains constant values used by the program.
"""
# List of commonly used baud rates, add more if required.
COMMON_BAUD_RATES = [
2400,
4800,
9600,
19200,
38400,
57600,
115200,
230400,
460800,
576000
]
# Points used for visual representation of the ultrasound probe in a 3D space. Order matters.
PROBE_POINTS = [
[0, 0, 0],
[-.5, -.06, 0],
[-1, -.2, 0],
[-1.5, -.5, 0],
[-2, -.8, 0],
[-.8, -6, 0],
[.8, -6, 0],
[2, -.8, 0],
[1.5, -.5, 0],
[1, -.2, 0],
[.5, -.06, 0]
]
# Default azimuth value used for the 3D plot.
AZIMUTH = 30
# Available return rates for the IMU. The Witmotion library limits the number of return rates that are available.
IMU_RATE_OPTIONS = [
"0.2Hz",
"0.5Hz",
"1Hz",
"2Hz",
"5Hz",
"10Hz",
"20Hz",
"50Hz",
"100Hz",
"200Hz"
]
# Available bandwidths for the IMU. Higher bandwidths should be used with higher return rates.
IMU_BANDWIDTH_OPTIONS = [
"256Hz",
"188Hz",
"98Hz",
"42Hz",
"20Hz",
"10Hz",
"5Hz"
]
# Available algorithms for the IMU, either 6-axis (without magnetometer) or 9-axis.
IMU_ALGORITHM_OPTIONS = [
'6-Axis (without magnetometer)',
'9-Axis (with magnetometer)'
]
# Number of available video sources. It is highly unlikely that more than 5 sources will be present, but if there are
# more this value can be increased. The values will range from 0 (inclusive) to VIDEO_SOURCES (inclusive)
SIGNAL_SOURCES = 5
# The width and height of the displayed image. The input signal will be resized to fit these dimensions.
DISPLAY_DIMENSIONS = (1024, 576)
# Default frame rate of the video signal. This is dependent on the video signal source and the hardware being used.
DEFAULT_FRAME_RATE = 100
# Default signal dimensions. HD is chosen, if it is not available the nearest lower resolution will be used.
DEFAULT_SIGNAL_DIMENSIONS = [1920, 1080]
# Common video signal dimensions, width x height
COMMON_SIGNAL_DIMENSIONS = [
['640x480'],
['800x600'],
['1280x720'],
['1920x1080']]
# Default scan depth saved to data.txt file.
DEFAULT_SCAN_DEPTH = 150
# If a point is added within this radius, the nearest point is removed instead (as a fraction).
DEFAULT_POINT_RADIUS = 0.01