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:
12:67a06c9b69d5
Parent:
11:9bf69bc6df45
Child:
14:cf260677ecde
diff -r 9bf69bc6df45 -r 67a06c9b69d5 Sensors/Comp/HMC5883.h
--- a/Sensors/Comp/HMC5883.h	Thu Oct 18 20:04:16 2012 +0000
+++ b/Sensors/Comp/HMC5883.h	Sat Oct 20 17:28:28 2012 +0000
@@ -20,21 +20,27 @@
         float data[3];
         
         void read();
+        
+        void calibrate(int s);
+        int Min[3];
+        int Max[3];
+        float scale[3];
+        float offset[3];
+        LocalFileSystem local;
+        
+        float get_angle();
+         
+    private:
+        I2C i2c;
+        
+        // raw data and function to measure it
+        int raw[3];
+        void readraw();
+        
+        // I2C functions
         void writeReg(char address, char data);
         void readMultiReg(char address, char* output, int size);
         
-        float scale[3]; //privatisieren
-        
-        float heading;
-        
-        int Min[3];
-        int Max[3];
-        
-        float   getAngle(float x, float y); //von Götti
-        
-    private:
-        I2C i2c;
-        
 };
 
 #endif