Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of greenimugetithothot by
Diff: main.cpp
- Revision:
- 1:44b26709b117
- Parent:
- 0:92bbf3093a25
- Child:
- 2:e8807de906c9
diff -r 92bbf3093a25 -r 44b26709b117 main.cpp
--- 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);
}
}
