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:
15:753c5d6a63b3
Parent:
14:cf260677ecde
Child:
16:74a6531350b5
--- a/Sensors/I2C_Sensor.h	Sat Oct 27 10:53:43 2012 +0000
+++ b/Sensors/I2C_Sensor.h	Mon Oct 29 16:43:10 2012 +0000
@@ -12,18 +12,18 @@
         
     protected:
         // I2C functions
-        void writeRegister(char address, char data);
-        void readMultiRegister(char address, char* output, int size);
-        
-    private:
-        I2C i2c;            // I2C-Bus
-    
-        int8_t i2c_address; // address
+        char readRegister(char reg);
+        void writeRegister(char reg, char data);
+        void readMultiRegister(char reg, char* output, int size);
         
         // raw data and function to measure it
         int raw[3];
         void readraw();
         
+    private:
+        I2C i2c;            // I2C-Bus
+        int8_t i2c_address; // address
+        
         LocalFileSystem local; // file access to save calibration values
 };