2011-10-13 11:22:03 -03:00
|
|
|
|
2011-11-27 01:34:26 -04:00
|
|
|
#ifndef __AP_BARO_BMP085_HIL_H__
|
|
|
|
#define __AP_BARO_BMP085_HIL_H__
|
|
|
|
|
|
|
|
#include "AP_Baro.h"
|
|
|
|
|
|
|
|
class AP_Baro_BMP085_HIL
|
2011-10-13 11:22:03 -03:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
uint8_t BMP085_State;
|
|
|
|
public:
|
2011-11-27 01:34:26 -04:00
|
|
|
AP_Baro_BMP085_HIL(); // Constructor
|
2011-10-13 11:22:03 -03:00
|
|
|
int32_t RawPress;
|
|
|
|
int32_t RawTemp;
|
|
|
|
int16_t Temp;
|
|
|
|
int32_t Press;
|
|
|
|
//int Altitude;
|
|
|
|
uint8_t oss;
|
2011-11-25 19:11:14 -04:00
|
|
|
void Init(int initialiseWireLib = 1, bool apm2_hardware=false);
|
2011-10-13 11:22:03 -03:00
|
|
|
uint8_t Read();
|
|
|
|
void setHIL(float Temp, float Press);
|
2011-11-13 02:42:20 -04:00
|
|
|
int32_t _offset_press;
|
2011-10-13 11:22:03 -03:00
|
|
|
};
|
|
|
|
|
2011-11-27 01:34:26 -04:00
|
|
|
#endif // __AP_BARO_BMP085_HIL_H__
|