![](/media/cache/profiles/a419a784903b00f0621174cbe8f7a4ce.jpg.50x50_q85.png)
algoritmo logica difusa sensores navegacion
Dependencies: GPS MODI2C SRF05 mbed HMC5883
Diff: BMP085/BMP085_old.h
- Revision:
- 0:1c15748ff0e1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BMP085/BMP085_old.h Sat Jul 19 05:35:58 2014 +0000 @@ -0,0 +1,34 @@ + +#ifndef BMP085_I2C_H +#define BMP085_I2C_H + +#include "mbed.h" + +class BMP085_old + { + private: + I2C i2c_; + + public: + BMP085_old(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