read acceleration and angler ratio from mpu6050 and estimate pitch and roll angle
Dependencies: mbed
myConstants.h@3:40559ebef0f1, 2015-05-13 (annotated)
- Committer:
- ojan
- Date:
- Wed May 13 04:02:27 2015 +0000
- Revision:
- 3:40559ebef0f1
- Parent:
- 2:4a6b46653abf
estimate gravity vector & geomagnetic vector
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ojan | 1:2eca9b376580 | 1 | #pragma once |
ojan | 1:2eca9b376580 | 2 | |
ojan | 2:4a6b46653abf | 3 | #define NEARLY_ZERO 0.000001f |
ojan | 2:4a6b46653abf | 4 | #define ZERO_TOLERANCE 0.001f |
ojan | 2:4a6b46653abf | 5 | #define RAD_TO_DEG 57.295779513f // 180 / π |
ojan | 2:4a6b46653abf | 6 | #define DEG_TO_RAD 0.0174532925f // π / 180 |
ojan | 2:4a6b46653abf | 7 | #define ACC_LSB_TO_G 0.00006103515625f // g/LSB |
ojan | 3:40559ebef0f1 | 8 | #define G_TO_MPSS 9.8f // (m/s^2)/g |
ojan | 3:40559ebef0f1 | 9 | //#define GYRO_LSB_TO_DEG 0.0152671755f // deg/LSB (1/65.5 |
ojan | 3:40559ebef0f1 | 10 | #define GYRO_LSB_TO_DEG 0.00763358778f // deg/LSB (1/131 |