imu rev1

Dependencies:   IMUfilter mbed

Fork of AIviate by UCLA IEEE

Revision:
0:0c627ff4c5ed
Child:
2:452dd766d212
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/steps.cpp	Wed Oct 30 02:31:43 2013 +0000
@@ -0,0 +1,16 @@
+#include "steps.h"
+
+Serial pc(USBTX, USBRX);
+
+// in the future, change get_sensor_data to append the sensor data to a rolling list 
+void get_sensor_data()
+{
+    struct accel s;
+    if (read_accelerometer(&s) == 0)
+    {
+        pc.printf("Error!");
+        return;
+    }
+    pc.printf("Ax: %i Ay: %i Az: %i\n", s.ax, s.ay, s.az);
+    return;
+}
\ No newline at end of file