IMU 10dof MEMS from DR Robot adapted from HK10DOF Changed gyro to ITG3200

Fork of HK10DOF by Aloïs Wolff

WARNING: This project is not complete, but this library seems ok so far.

I have the module DFRobotics.com 10DOF MEMS IMU. I wanted a concise module for resolving direction and movement.

I found HK10DOF library (http://developer.mbed.org/users/pommzorz/code/HK10DOF/) with quaternions. But it used a different gyro. So I modified that code to use the same higher level calls but use the ITG3200 low level calls.

Revision:
3:450acaa4f52d
Parent:
0:9a1682a09c50
--- a/HMC5883L.cpp	Tue Nov 18 05:46:50 2014 +0000
+++ b/HMC5883L.cpp	Tue Nov 18 06:25:57 2014 +0000
@@ -49,6 +49,7 @@
 
 void HMC5883L::init()
 {
+    i2c_.frequency(50000);
     // init - configure your setup here
     setConfigurationA(AVG8_SAMPLES | OUTPUT_RATE_15); // 8 sample average, 15Hz, normal mode
     setConfigurationB(0x20); // default