ardupilot/libraries/AP_Baro/AP_Baro_BMP085_hil.h

32 lines
704 B
C
Raw Normal View History

/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
2011-10-13 11:22:03 -03:00
#ifndef __AP_BARO_BMP085_HIL_H__
#define __AP_BARO_BMP085_HIL_H__
#include "AP_Baro.h"
class AP_Baro_BMP085_HIL : public AP_Baro
2011-10-13 11:22:03 -03:00
{
private:
uint8_t BMP085_State;
float Temp;
float Press;
int32_t _pressure_sum;
int32_t _temperature_sum;
uint8_t _count;
public:
AP_Baro_BMP085_HIL(); // Constructor
bool init(AP_PeriodicProcess * scheduler);
2011-12-11 00:30:24 -04:00
uint8_t read();
float get_pressure();
float get_temperature();
2011-12-11 00:30:24 -04:00
int32_t get_raw_pressure();
int32_t get_raw_temp();
void setHIL(float Temp, float Press);
2012-08-15 23:53:37 -03:00
void calibrate(void (*callback)(unsigned long t));
2011-10-13 11:22:03 -03:00
};
#endif // __AP_BARO_BMP085_HIL_H__