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:
- 40:2ca410923691
- Parent:
- 36:128c55793728
--- a/Sensors/I2C_Sensor.h Wed Aug 28 00:30:38 2013 +0000 +++ b/Sensors/I2C_Sensor.h Fri Feb 14 14:17:32 2014 +0000 @@ -11,10 +11,6 @@ public: 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 - //TODO: virtual void calibrate() = 0; // calibrate the sensor and if desired write calibration values to a file - protected: // Calibration void saveCalibrationValues(float values[], int size, char * filename); @@ -25,10 +21,6 @@ void writeRegister(char reg, char data); void readMultiRegister(char reg, char* output, int size); - // raw data and function to measure it - int raw[3]; - virtual void readraw() = 0; - private: I2C i2c_init; // original mbed I2C-library just to initialise the control registers MODI2C i2c; // I2C-Bus