Aaron Berk
/
9dofRazorImuAhrs
SparkFun 9DOF Razor IMU with AHRS [http://code.google.com/p/sf9domahrs/]
main.cpp
- Committer:
- aberk
- Date:
- 2010-06-17
- Revision:
- 0:ef171fe2a7e5
File content as of revision 0:ef171fe2a7e5:
/** * Read the yaw value from the SparkFun 9DOF Razor IMU. */ #include "dof9RazorImuAhrs.h" #include "mbed.h" Serial pc(USBTX, USBRX); dof9RazorImuAhrs theRazor(p9, p10); int main() { while(1) { wait(0.1); theRazor.update(); pc.printf("Yaw: %f\n", theRazor.getYaw()); } }