Simple test application for DMU Library

Dependencies:   SiliconSensingDMU mbed

Files at this revision

API Documentation at this revision

Comitter:
ramwilliford
Date:
Mon Mar 11 16:35:57 2013 +0000
Commit message:
Latest

Changed in this revision

SiliconSensingDMU.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SiliconSensingDMU.lib	Mon Mar 11 16:35:57 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/ramwilliford/code/SiliconSensingDMU/#e4342b551612
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 11 16:35:57 2013 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "DMU.h"
+
+DMU dmu(p11, p12, p13, p8, p9, p10);
+Serial pc(USBTX, USBRX);
+
+
+int main() {
+    dmu.test();
+    while(1){
+        pc.printf("Y accel:%.1f\n",dmu.acceleration('y'));
+        pc.printf("X accel:%.1f\n",dmu.acceleration('x'));
+        pc.printf("Z accel:%.1f\n",dmu.acceleration('z'));
+        pc.printf("Pitch:%.2f\n",dmu.pitch());
+        pc.printf("Roll:%.2f\n",dmu.roll());
+        pc.printf("Yaw:%.2f\n",dmu.yaw());
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 11 16:35:57 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/5e5da4a5990b
\ No newline at end of file