Rleg  2
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
calibration.h
Go to the documentation of this file.
1 #ifndef COMMUNICATION_H
2 #define COMMUNICATION_H
3 
4 #include "../communication/communication.h"
5 
6 #define SUCCESS 1
7 #define FAILURE -1
8 
14 // used data rleg_99.mat and rleg.mag with ellipsoid_fit.m: rotating slowly at many directions
15 #define ACC_BIAS_X 19.2
16 #define ACC_BIAS_Y 6.024
17 #define ACC_BIAS_Z -18.97
18 #define ACC_FS_X 262.82
19 #define ACC_FS_Y 262.15
20 #define ACC_FS_Z 252.20
21 
22 #define MAG_BIAS_X -143
23 #define MAG_BIAS_Y -101
24 #define MAG_BIAS_Z 3
25 #define MAG_FS_X 177
26 #define MAG_FS_Y 139
27 #define MAG_FS_Z 85
28 
29 // used data rleg_2.mat (stopped)
30 #define GYR_BIAS_X -60.9046
31 #define GYR_BIAS_Y 40.9062
32 #define GYR_BIAS_Z 0.8769
33 #define GYR_FS_X 0.001214142 // from datasheet (rad/s)/LSB
34 #define GYR_FS_Y 0.001214142
35 #define GYR_FS_Z 0.001214142
36 
37 // No tested
38 #define ENC_FS 0.08789062 // (2pi)/(2^12)
39 #define ENC_MAX 4096 // 2^12
40 
46 
52 
59 
60 #endif
ENC_DATA_STRUCT enc_data
Definition: main.c:31
void calibrate_imu(IMU_DATA_STRUCT *imu_data)
Calibrate imu sensors.
Definition: calibration.c:14
Data of IMU structure.
Definition: communication.h:93
void calibrate_all(IMU_DATA_STRUCT *imu_data)
Calibrate all sensors.
Definition: calibration.c:8
IMU_DATA_STRUCT imu_data
Definition: main.c:30
void calibrate_enc(ENC_DATA_STRUCT *enc_data)
Calibrate encoder to return values in the rage of 0 to 90.
Definition: calibration.c:33