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:
2:93f703d2c4d7
Parent:
1:5a64632b1eb9
Child:
10:953afcbcebfc
--- a/Sensors/Gyro/L3G4200D.h	Fri Sep 28 13:24:03 2012 +0000
+++ b/Sensors/Gyro/L3G4200D.h	Tue Oct 02 17:53:40 2012 +0000
@@ -1,7 +1,7 @@
 // based on http://mbed.org/users/shimniok/code/L3G4200D/
 
-#ifndef __L3G4200D_H
-#define __L3G4200D_H
+#ifndef L3G4200D_H
+#define L3G4200D_H
 
 #include "mbed.h"
 
@@ -43,11 +43,11 @@
 {
     public:            
         L3G4200D(PinName sda, PinName scl); // constructor, uses i2c
-        void read(int g[3]); // read all axis to array
+        void read(float g[3]); // read all axis to array
         int readTemp(); // read temperature from sensor
         
     private:
-        byte data[6]; // 8-Bit pieces of axis data
+        float offset[3]; // offset that's subtracted from every measurement
         I2C i2c; // i2c object to communicate
         void writeReg(byte reg, byte value); // write one single register to sensor
         byte readReg(byte reg); // read one single register from sensor