-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
89 lines (63 loc) · 1.77 KB
/
config.py
File metadata and controls
89 lines (63 loc) · 1.77 KB
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
# headers represent the order of IMU data in the Serial
headers = [
"imu_1_gyr z",
"imu_1_gyr y",
"imu_1_gyr x",
"imu_1_acc z",
"imu_1_acc y",
"imu_1_acc x",
"imu_2_gyr z",
"imu_2_gyr y",
"imu_2_gyr x",
"imu_2_acc z",
"imu_2_acc y",
"imu_2_acc x",
]
esp_headers=[
"AcX", "AcY", "AcZ", "Tmp", "GyX", "GyY", "GyZ", "MaX", "MaY", "MaZ"
]
mpu9250_headers=[
#TODO: ТУТ ХУЙНЯ КАКАЯ_ТО
"imu_1_acc x",
"imu_1_acc y",
"imu_1_acc z",
# "imu_1_tem",
"imu_1_gyr x",
"imu_1_gyr y",
"imu_1_gyr z",
"imu_1_mag x",
"imu_1_mag y",
"imu_1_mag z",
"imu_2_mag z",
"imu_2_mag y",
"imu_2_mag x",
"imu_2_gyr z",
"imu_2_gyr y",
"imu_2_gyr x",
"imu_2_acc z",
"imu_2_acc y",
"imu_2_acc x",
# "imu_2_tem",
]
# redis data channels names
imu_raw_message_channel = "imu_raw_data"
imu_calibrated_message_channel = "imu_calibrated_data"
madgwick_message_channel = "madgwick_data"
# logger stream name in redis database. Not is use for now. But it will be a great work.
log_message_channel = "logger"
# imu_names, which will be used in the redis database and plots
imu_1_name = "imu_1"
imu_2_name = "imu_2"
# name of file where all calibration coefficients are stored
calib_data_filename = "calib_data.json"
# names of calibration coefficients in the file with calib_data_filename
acc_offsets_str = "acc offsets"
acc_coefficients_str = "acc coeffs"
gyro_coefficients_str = "gyro coeffs"
gyro_offsets_str = "gyro offsets"
import numpy as np
# gyroscope parameters which has to be checked via experiments of from IMU documentation
# omega_e_imu_1 = [0.001, 0.006, 0.015]
# omega_e_imu_2 = [0.001, 0.01, 0.0075]
omega_e_imu_1 = [1, 1, 1]
omega_e_imu_2 = [0.01, 0.01, 0.01]