![](/media/cache/profiles/8ad6635f33710af6a535e8fb8486975e.50x50_q85.jpg)
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.
Diff: Sensors/Acc/ADXL345.h
- Revision:
- 26:96a072233d7a
- Parent:
- 20:e116e596e540
- Child:
- 33:fd98776b6cc7
diff -r 0498d3041afa -r 96a072233d7a Sensors/Acc/ADXL345.h --- a/Sensors/Acc/ADXL345.h Mon Nov 26 16:11:28 2012 +0000 +++ b/Sensors/Acc/ADXL345.h Tue Nov 27 19:49:38 2012 +0000 @@ -64,8 +64,6 @@ #define ADXL345_Y 0x01 #define ADXL345_Z 0x02 -#define Rad2Deg 57.295779513082320876798154814105 - typedef char byte; class ADXL345 @@ -74,7 +72,6 @@ ADXL345(PinName sda, PinName scl); // constructor, uses i2c void read(); // read all axis to array int data[3]; // where the measured data is saved - float angle[3]; // where the calculated angles are stored private: I2C i2c; // i2c object to communicate