imu rev1

Dependencies:   IMUfilter mbed

Fork of AIviate by UCLA IEEE

Revision:
3:f9e18a9cd9af
Parent:
2:452dd766d212
Child:
4:44a5b1e8fd27
--- a/steps.cpp	Fri Nov 01 00:48:06 2013 +0000
+++ b/steps.cpp	Fri Nov 01 01:23:04 2013 +0000
@@ -11,8 +11,12 @@
         pc.printf("Error in get_sensor_data while reading from accel!\r\n");
         return;
     }
-    
-    pc.printf("Ax: %i Ay: %i Az: %i;\r\n", s.ax, s.ay, s.az);
+    if (read_gyro(&s) == 0)
+    {
+        pc.printf("Error in get_sensor_data while reading from gyro!\r\n");
+        return;
+    }
+    pc.printf("Ax: %i Ay: %i Az: %i Gx: %i Gy: %i Gz: %i\r\n", s.ax, s.ay, s.az, s.gx, s.gy, s.gz);
     return;
 }