![](/media/cache/profiles/79a49b3e3762632813f9e35f4ba53d6c.50x50_q85.jpg)
SparkFun 9DOF Razor IMU with AHRS [http://code.google.com/p/sf9domahrs/]
Diff: main.cpp
- Revision:
- 0:ef171fe2a7e5
diff -r 000000000000 -r ef171fe2a7e5 main.cpp --- /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()); + } + +}