2017年度の製作を開始します。

Dependencies:   BufferedSoftSerial2 SDFileSystem-RTOS mbed mbed-rtos INA226_ver1

Fork of keiki2016ver5 by albatross

Branch:
Thread-gyogetsuMPU
Revision:
48:2160c28d02f8
Parent:
34:c46f2f687c7b
--- a/MPU6050.h	Sat Apr 01 08:43:02 2017 +0000
+++ b/MPU6050.h	Fri Apr 21 05:44:00 2017 +0000
@@ -180,7 +180,7 @@
 float beta = sqrt(3.0f / 4.0f) * GyroMeasError;  // compute beta
 float GyroMeasDrift = PI * (1.0f / 180.0f);      // gyroscope measurement drift in rad/s/s (start at 0.0 deg/s/s)
 float zeta = sqrt(3.0f / 4.0f) * GyroMeasDrift;  // compute zeta, the other free parameter in the Madgwick scheme usually set to a small or zero value
-float pitch, yaw, roll;
+float pitch, yaw, roll = 0;
 float deltat = 0.0f;                              // integration interval for both filter schemes
 int lastUpdate = 0, firstUpdate = 0, Now = 0;     // used to calculate integration interval                               // used to calculate integration interval
 float q[4] = {1.0f, 0.0f, 0.0f, 0.0f};            // vector to hold quaternion