algoritmo logica difusa sensores navegacion

Dependencies:   GPS MODI2C SRF05 mbed HMC5883

Sensors/Alt/BMP085.h

Committer:
arturocontreras
Date:
2014-07-19
Revision:
0:1c15748ff0e1

File content as of revision 0:1c15748ff0e1:

// based on http://mbed.org/users/okini3939/code/BMP085/

#ifndef BMP085_H
#define BMP085_H

#include "mbed.h"
#include "I2C_Sensor.h"

#define BMP085_I2C_ADDRESS 0xEE

class BMP085 : public I2C_Sensor
{           
    public:
        BMP085(PinName sda, PinName scl);
        
        //virtual void read();
        
        void calibrate(int s);
        
        float get_height();
         
    private:
        // raw data and function to measure it
        int raw[3];
        //void readraw();
        
        // calibration parameters and their saving
        int Min[3];
        int Max[3];
        float scale[3];
        float offset[3];
};

#endif