MPU6050のサンプルプログラム2

Dependencies:   ConfigFile SDFileSystem mbed

Fork of LAURUS_program by LAURUS

Revision:
0:bc6f14fc60c7
Child:
1:6cd6d2760856
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/myConstants.h	Fri May 15 17:24:32 2015 +0000
@@ -0,0 +1,11 @@
+#pragma once
+
+#define NEARLY_ZERO         0.000001f
+#define ZERO_TOLERANCE      0.001f
+#define RAD_TO_DEG          57.2957795f             // 180 / π
+#define DEG_TO_RAD          0.0174532925f           // π / 180
+#define ACC_LSB_TO_G        0.0000610351562f        // g/LSB (1/2^14
+#define G_TO_MPSS           9.8f                    // (m/s^2)/g
+//#define GYRO_LSB_TO_DEG     0.0152671755f          // deg/LSB (1/65.5
+#define GYRO_LSB_TO_DEG     0.00763358778f          // deg/LSB (1/131
+#define PRES_LSB_TO_HPA     0.000244140625f         // hPa/LSB (1/4096
\ No newline at end of file