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

Dependencies:   ConfigFile SDFileSystem mbed

Fork of LAURUS_program by LAURUS

Revision:
1:6cd6d2760856
Parent:
0:bc6f14fc60c7
Child:
3:5358a691a100
--- a/myConstants.h	Fri May 15 17:24:32 2015 +0000
+++ b/myConstants.h	Sun May 24 17:32:47 2015 +0000
@@ -6,6 +6,11 @@
 #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
+//#define GYRO_LSB_TO_DEG     0.0304878048f          // deg/LSB (1/32.8
+#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
+
+#define MAG_LSB_TO_GAUSS    0.00092f                // Gauss/LSB
+#define MAG_MAGNITUDE       0.46f                   // Magnitude of GeoMagnetism (Gauss)
+#define MAG_SIN             -0.754709580f            // Sin-Value of Inclination
\ No newline at end of file