use this

Dependencies:   mbed

Fork of greenimugetithothot by SGMP Coperations

Revision:
1:44b26709b117
Parent:
0:92bbf3093a25
Child:
2:e8807de906c9
--- a/main.cpp	Thu Dec 07 14:20:22 2017 +0000
+++ b/main.cpp	Sun Dec 10 07:13:07 2017 +0000
@@ -1,5 +1,5 @@
 #include "mbed.h"
-#include "zmu9250.h"
+#include "GETMPU9250.h"
 #include "math.h"
 
 ZMU9250 axis_Gen;
@@ -17,11 +17,11 @@
         axis_ax = axis_Gen.g_ax()*180;
         axis_ay = axis_Gen.g_ay()*180;
         axis_az = axis_Gen.g_az()*180;
-        axis_gx = axis_Gen.g_gx()*180;
-        axis_gy = axis_Gen.g_gy()*180;
-        axis_gz = axis_Gen.g_gz()*180; 
-        //pc.printf(" axis_x %f\t axis_y %f\t axis_z %f\n\n\n\r", axis_gx, axis_gy, axis_gz);     
-        pc.printf(" axis_x %f\t axis_y %f\t axis_z %f\n\n\n\r", axis_ax, axis_ay, axis_az);
+        axis_gx = axis_Gen.g_gx();
+        axis_gy = axis_Gen.g_gy();
+        axis_gz = axis_Gen.g_gz(); 
+        pc.printf(" axis_x %f\t axis_y %f\t axis_z %f\n\n\n\r", axis_gx, axis_gy, axis_gz);     
+        //pc.printf(" axis_x %f\t axis_y %f\t axis_z %f\n\n\n\r", axis_ax, axis_ay, axis_az);
         wait(0.2);     
      }
 }