2011-12-28 05:32:21 -04:00
|
|
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
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"
|
|
|
|
|
2012-06-19 23:25:19 -03:00
|
|
|
class AP_Baro_BMP085_HIL : public AP_Baro
|
2011-10-13 11:22:03 -03:00
|
|
|
{
|
2011-12-28 05:32:21 -04:00
|
|
|
private:
|
2012-08-21 23:19:51 -03:00
|
|
|
uint8_t BMP085_State;
|
2012-07-06 02:11:22 -03:00
|
|
|
float Temp;
|
|
|
|
float Press;
|
2012-07-05 03:26:56 -03:00
|
|
|
int32_t _pressure_sum;
|
|
|
|
int32_t _temperature_sum;
|
|
|
|
uint8_t _count;
|
|
|
|
|
2011-12-28 05:32:21 -04:00
|
|
|
public:
|
2011-11-27 01:34:26 -04:00
|
|
|
AP_Baro_BMP085_HIL(); // Constructor
|
2011-12-28 05:32:21 -04:00
|
|
|
|
2012-10-11 14:53:21 -03:00
|
|
|
bool init();
|
2012-08-21 23:19:51 -03:00
|
|
|
uint8_t read();
|
|
|
|
float get_pressure();
|
|
|
|
float get_temperature();
|
|
|
|
int32_t get_raw_pressure();
|
|
|
|
int32_t get_raw_temp();
|
|
|
|
void setHIL(float Temp, float Press);
|
2011-10-13 11:22:03 -03:00
|
|
|
};
|
|
|
|
|
2011-11-27 01:34:26 -04:00
|
|
|
#endif // __AP_BARO_BMP085_HIL_H__
|