Inertial measurement unit orientation filter. Ported from Sebastian Madgwick\'s paper, \"An efficient orientation filter for inertial and inertial/magnetic sensor arrays\".
Dependencies: mbed ITG3200 ADXL345 IMUfilter
Diff: main.cpp
- Revision:
- 1:dda873ab579f
- Parent:
- 0:056706c688ae
--- a/main.cpp Tue Aug 10 13:19:17 2010 +0000 +++ b/main.cpp Sat Nov 27 12:07:45 2010 +0000 @@ -27,7 +27,7 @@ //Sampling accelerometer at 200Hz. #define ACC_RATE 0.005 //Updating filter at 40Hz. -#define FILTER_RATE 0.025 +#define FILTER_RATE 0.1 Serial pc(USBTX, USBRX); //At rest the gyroscope is centred around 0 and goes between about