A quadcopter control Software (Still in development). achieved single axis stability!!!!! released for others benefit. if you'd like to help co-develop this code, then please let me know

Dependencies:   MovingAverageFilter MyI2C PID RC mbed-rtos mbed

Currently on hold, due to the fact that i don't own a RX/TX system

BMP085/BMP085.h

Committer:
KarimAzzouz
Date:
2013-08-27
Revision:
1:e08a4f517989

File content as of revision 1:e08a4f517989:

#ifndef BMP085_H
#define BMP085_H

#include "Std_Types.h"
#include "MyI2C.h"

#define BMP_ADDRESS 0x77
#define OSS 3

extern MyI2C I2C0;

class BMP085{

 public:
 BMP085();
 void Calibrate(void);
 void readUT_Flag(void);
 void readUP_Flag(void);
 uint16 readUT(void);
 uint32 readUP(void);
 int16 read_Temperature(void);
 int32 read_Pressure(void);
 private:
 
 int16 AC1,AC2,AC3,AC4,AC5,AC6;
 int16 B1,B2;
 int16 MB,MC,MD;
 int32 B5;
 
 void write(char reg,char data);

 int16 read (char reg);
 
 uint8 readInt (char reg);
 
};
#endif