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/I2C_Sensor.h
- Revision:
- 21:c2a2e7cbabdd
- Parent:
- 20:e116e596e540
--- a/Sensors/I2C_Sensor.h Mon Nov 05 09:19:01 2012 +0000 +++ b/Sensors/I2C_Sensor.h Sat Nov 17 11:49:21 2012 +0000 @@ -8,7 +8,7 @@ class I2C_Sensor { public: - I2C_Sensor(PinName sda, PinName scl, int8_t address); + I2C_Sensor(PinName sda, PinName scl, char address); float data[3]; // where the measured data is saved virtual void read() = 0; // read all axis from register to array data @@ -30,7 +30,7 @@ private: I2C i2c; // I2C-Bus - int8_t i2c_address; // address + char i2c_address; // address LocalFileSystem local; // file access to save calibration values };