NOT FINISHED YET!!! My first try to get a self built fully working Quadrocopter based on an mbed, a self built frame and some other more or less cheap parts.

Dependencies:   mbed MODI2C

Revision:
40:2ca410923691
Parent:
34:3aa1cbcde59d
--- a/Sensors/Comp/HMC5883.h	Wed Aug 28 00:30:38 2013 +0000
+++ b/Sensors/Comp/HMC5883.h	Fri Feb 14 14:17:32 2014 +0000
@@ -17,13 +17,14 @@
 {           
     public:
         HMC5883(PinName sda, PinName scl);
-        
-        virtual void read();            // read all axis from register to array data
+        float data[3];                  // where the measured data is saved
+        void read();            // read all axis from register to array data
         void calibrate(int s);
         float get_angle();
          
     private:
-        virtual void readraw();                 // function to get raw data
+        int raw[3];
+        void readraw();                 // function to get raw data
         
         float scale[3];                 // calibration parameters
         float offset[3];