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.

Dependencies:   mbed MODI2C

BMP085/BMP085_old.h

Committer:
maetugr
Date:
2014-02-14
Revision:
40:2ca410923691
Parent:
14:cf260677ecde

File content as of revision 40:2ca410923691:

 
#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