imu rev1

Dependencies:   IMUfilter mbed

Fork of AIviate by UCLA IEEE

steps.cpp

Committer:
teamgoat
Date:
2013-10-30
Revision:
0:0c627ff4c5ed
Child:
2:452dd766d212

File content as of revision 0:0c627ff4c5ed:

#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;
}