Rleg
2
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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
4
#include "
communication/communication.h
"
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
40
void
calibrate_all
(
IMU_DATA_STRUCT
*
imu_data
);
41
46
void
calibrate_imu
(
IMU_DATA_STRUCT
*
imu_data
);
47
53
void
calibrate_enc
(
ENC_DATA_STRUCT
*
enc_data
);
54
55
#endif
communication.h
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