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: BMP085/BMP085.h
- Revision:
- 14:cf260677ecde
- Parent:
- 13:4737ee9ebfee
- Child:
- 15:753c5d6a63b3
--- a/BMP085/BMP085.h Thu Oct 25 19:27:56 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ - -#ifndef BMP085_I2C_H -#define BMP085_I2C_H - -#include "mbed.h" - -class BMP085 - { - private: - I2C i2c_; - - public: - BMP085(PinName sda, PinName scl); - - void Update(); - float Temperature; - float Pressure; - float CalcAltitude(float Press); - short oss; - - protected: - void Init(); - unsigned short twi_readshort (int, int); - unsigned long twi_readlong (int, int); - void twi_writechar (int, int, int); - - - private: - - short AC1, AC2, AC3, B1, B2, MB, MC, MD; - unsigned short AC4, AC5, AC6; - }; - -#endif \ No newline at end of file