An fully working IMU-Filter and Sensor drivers for the 10DOF-Board over I2C. All in one simple class. Include, calibrate sensors, call read, get angles. (3D Visualisation code for Python also included) Sensors: L3G4200D, ADXL345, HMC5883, BMP085
BMP085/BMP085_old.h
- Committer:
- maetugr
- Date:
- 2013-08-29
- Revision:
- 4:f62337b907e5
File content as of revision 4:f62337b907e5:
#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