Simple step tracking

Dependencies:   MPU9250 mbed-os

Fork of ST by alonso palomino

Revision:
11:03a4a6e9f27c
Parent:
9:e265a634306d
--- a/main.cpp	Fri Oct 20 19:01:23 2017 +0000
+++ b/main.cpp	Sun Oct 22 14:47:11 2017 +0000
@@ -125,10 +125,7 @@
             float gy = gyroscope[1] * 250.0 / 32768.0;
             float gz = gyroscope[2] * 250.0 / 32768.0;
             
-            uint8_t *gzValue;
-            gzValue = reinterpret_cast<uint8_t*>(&gz);
-            pc.printf("%f, %f, %f, %f, %f, %f \n", roll, pitch, yaw, gx, gy, gz);                                    
-            //buttonServicePtr->updateButtonState(roll, pitch, yaw, gx, gy, gz);       
+            pc.printf("%f, %f, %f, %f, %f, %f \n", roll, pitch, yaw, gx, gy, gz);        
             buttonServicePtr->updateButtonState(roll, pitch, yaw, gyroscope[0], gyroscope[1], gyroscope[2]);      
         }
         ble.waitForEvent();