Rleg  2
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
calibration.h
Go to the documentation of this file.
1 #ifndef CALIBRATION_H
2 #define CALIBRATION_H
3 
5 
6 #define SUCCESS 1
7 #define FAILURE -1
8 
9 // used data rleg_99.mat and rleg.mag with ellipsoid_fit.m: rotating slowly at many directions
10 #define ACC_BIAS_X 19.2
11 #define ACC_BIAS_Y 6.024
12 #define ACC_BIAS_Z -18.97
13 #define ACC_FS_X 262.82
14 #define ACC_FS_Y 262.15
15 #define ACC_FS_Z 252.20
16 
17 #define MAG_BIAS_X -143
18 #define MAG_BIAS_Y -101
19 #define MAG_BIAS_Z 3
20 #define MAG_FS_X 177
21 #define MAG_FS_Y 139
22 #define MAG_FS_Z 85
23 
24 // used data rleg_2.mat (stopped)
25 #define GYR_BIAS_X -60.8067
26 #define GYR_BIAS_Y 40.0800
27 #define GYR_BIAS_Z 0.7267
28 #define GYR_FS_X 0.001214142 // from datasheet (rad/s)/LSB
29 #define GYR_FS_Y 0.001214142
30 #define GYR_FS_Z 0.001214142
31 
32 // No tested
33 #define ENC_FS 0.08789062 // (2pi)/(2^12)
34 #define ENC_MAX 4096 // 2^12
35 
41 
47 
54 
55 #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