Added external magnetometer functionality

Dependencies:   HMC58X31 MODI2C MPU6050 MS561101BA

Dependents:   Quadcopter_mk2

Fork of FreeIMU by Yifei Teng

Revision:
13:21b275eeeda2
Parent:
9:a79af1283446
diff -r 2ceb5950ee44 -r 21b275eeeda2 FreeIMU.h
--- a/FreeIMU.h	Mon Feb 10 01:13:34 2014 +0000
+++ b/FreeIMU.h	Thu Sep 18 08:43:06 2014 +0000
@@ -121,6 +121,7 @@
     void init(bool fastmode);
     
     void init(int accgyro_addr, bool fastmode);
+    void sample(bool sampling);
     
     #ifndef CALIBRATION_H
     void calLoad();
@@ -129,6 +130,7 @@
     void getRawValues(int16_t * raw_values);
     void getValues(float * values);
     void getQ(float * q);
+    void getRate(float * r);
     void getEuler(float * angles);
     void getYawPitchRoll(float * ypr);
     void getEulerRad(float * angles);