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:
21:c2a2e7cbabdd
Parent:
20:e116e596e540
--- a/Sensors/Gyro/L3G4200D.h	Mon Nov 05 09:19:01 2012 +0000
+++ b/Sensors/Gyro/L3G4200D.h	Sat Nov 17 11:49:21 2012 +0000
@@ -45,6 +45,7 @@
     public:            
         L3G4200D(PinName sda, PinName scl); // constructor, uses I2C_Sensor class
         virtual void read();                // read all axis from register to array data
+        void calibrate();                   // calibrate the gyro (get an offset while not moving)
         int readTemp();                     // read temperature from sensor
         
     private: