testing gyro get orientation,acceleration states get difference in two states of the device

Dependencies:   mbed

Fork of testing_gyro by Dimitar Borisov

Revision:
4:e89d74a1d9f5
Parent:
0:91b1274ec397
--- a/MKI124V1.h	Sun Mar 22 16:17:19 2015 +0000
+++ b/MKI124V1.h	Wed Mar 25 13:31:01 2015 +0000
@@ -64,9 +64,9 @@
 typedef struct{   
     float   pitch;
     float   roll;
-    float   Xrotation;
-    float   Yrotation;
-    float   Zrotation;
+    int16_t   aX;
+    int16_t   aY;
+    int16_t   aZ;
     float   heading;
     float   tempC;
     float   pressuremB;
@@ -74,4 +74,11 @@
     
 
 
-
+typedef struct{
+    float x;
+    float y;
+    float z;
+    int16_t aX;
+    int16_t aY;
+    int16_t aZ;
+}Result_avrg;