Project for testing the minimu-9 v2 by pololu

Dependencies:   L3GD20 LSM303DLHC mbed

Files at this revision

API Documentation at this revision

Comitter:
bclaus
Date:
Thu Feb 21 00:24:06 2013 +0000
Commit message:
Project for testing the minimu-9 v2 by Pololu;

Changed in this revision

L3GD20.lib Show annotated file Show diff for this revision Revisions of this file
LSM303DLHC.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
diff -r 000000000000 -r 4b3d36de811a L3GD20.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/L3GD20.lib	Thu Feb 21 00:24:06 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/bclaus/code/L3GD20/#62dfce144cf7
diff -r 000000000000 -r 4b3d36de811a LSM303DLHC.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LSM303DLHC.lib	Thu Feb 21 00:24:06 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/bclaus/code/LSM303DLHC/#612f7d5a822d
diff -r 000000000000 -r 4b3d36de811a main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Feb 21 00:24:06 2013 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include "L3GD20.h"
+#include "LSM303DLHC.h"
+ 
+L3GD20 gyro(p28, p27);
+Serial debug(USBTX,USBRX);
+LSM303DLHC compass(p28, p27);
+
+
+
+  int main() {
+    float ax, ay, az;
+    float mx, my, mz;
+    float gx, gy, gz;
+    debug.format(8,Serial::None,1);
+    debug.baud(115200);
+    debug.printf("miniimu-9 v2 Test");
+
+    while(1) {
+      
+      compass.read(&ax, &ay, &az, &mx, &my, &mz);
+      gyro.read(&gx, &gy, &gz);
+      debug.printf("a %.4f %.4f %.4f m %.4f %.4f %.4f m %.4f %.4f %.4f\n\r",ax,ay,az,mx,my,mz,gx,gy,gz);
+      wait(0.05);
+    }
+  }
\ No newline at end of file
diff -r 000000000000 -r 4b3d36de811a mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Feb 21 00:24:06 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/3d0ef94e36ec
\ No newline at end of file