Rleg
2
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Groups
Pages
calibration
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
45
void
calibrate_all
(
IMU_DATA_STRUCT
*
imu_data
);
46
51
void
calibrate_imu
(
IMU_DATA_STRUCT
*
imu_data
);
52
58
void
calibrate_enc
(
ENC_DATA_STRUCT
*
enc_data
);
59
60
#endif
enc_data
ENC_DATA_STRUCT enc_data
Definition:
main.c:31
calibrate_imu
void calibrate_imu(IMU_DATA_STRUCT *imu_data)
Calibrate imu sensors.
Definition:
calibration.c:14
IMU_DATA_STRUCT
Data of IMU structure.
Definition:
communication.h:93
calibrate_all
void calibrate_all(IMU_DATA_STRUCT *imu_data)
Calibrate all sensors.
Definition:
calibration.c:8
imu_data
IMU_DATA_STRUCT imu_data
Definition:
main.c:30
ENC_DATA_STRUCT
Definition:
encoder_functions.h:45
calibrate_enc
void calibrate_enc(ENC_DATA_STRUCT *enc_data)
Calibrate encoder to return values in the rage of 0 to 90.
Definition:
calibration.c:33
Generated on Tue Mar 18 2014 14:30:11 for Rleg by
1.8.6