read acceleration and angler ratio from mpu6050 and estimate pitch and roll angle
Dependencies: mbed
Diff: myConstants.h
- Revision:
- 2:4a6b46653abf
- Parent:
- 1:2eca9b376580
- Child:
- 3:40559ebef0f1
--- a/myConstants.h Thu Apr 16 08:51:04 2015 +0000 +++ b/myConstants.h Mon Apr 20 14:54:55 2015 +0000 @@ -1,4 +1,8 @@ #pragma once -#define NEARLY_ZERO 0.000001f -#define ZERO_TOLERANCE 0.001f \ No newline at end of file +#define NEARLY_ZERO 0.000001f +#define ZERO_TOLERANCE 0.001f +#define RAD_TO_DEG 57.295779513f // 180 / π +#define DEG_TO_RAD 0.0174532925f // π / 180 +#define ACC_LSB_TO_G 0.00006103515625f // g/LSB +#define GYRO_LSB_TO_DEG 0.00763358778f // deg/LSB \ No newline at end of file