Aaron Berk
/
9dofRazorImuAhrs
SparkFun 9DOF Razor IMU with AHRS [http://code.google.com/p/sf9domahrs/]
Diff: main.cpp
- Revision:
- 0:ef171fe2a7e5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jun 17 10:05:46 2010 +0000 @@ -0,0 +1,19 @@ +/** + * 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()); + } + +}