2011-12-28 05:32:21 -04:00
|
|
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
2011-11-05 22:11:25 -03:00
|
|
|
|
|
|
|
#ifndef __AP_BARO_H__
|
|
|
|
#define __AP_BARO_H__
|
|
|
|
|
2011-12-09 02:33:00 -04:00
|
|
|
#include "../AP_PeriodicProcess/AP_PeriodicProcess.h"
|
|
|
|
|
2011-11-05 22:11:25 -03:00
|
|
|
class AP_Baro
|
|
|
|
{
|
|
|
|
public:
|
2011-12-28 05:32:21 -04:00
|
|
|
bool healthy;
|
|
|
|
AP_Baro() {}
|
|
|
|
virtual bool init(AP_PeriodicProcess *scheduler)=0;
|
|
|
|
virtual uint8_t read() = 0;
|
|
|
|
virtual int32_t get_pressure() = 0;
|
|
|
|
virtual int16_t get_temperature() = 0;
|
|
|
|
virtual float get_altitude() = 0;
|
|
|
|
|
|
|
|
virtual int32_t get_raw_pressure() = 0;
|
|
|
|
virtual int32_t get_raw_temp() = 0;
|
2011-11-05 22:11:25 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
#include "AP_Baro_MS5611.h"
|
2011-11-27 01:34:51 -04:00
|
|
|
#include "AP_Baro_BMP085.h"
|
|
|
|
#include "AP_Baro_BMP085_hil.h"
|
2011-11-05 22:11:25 -03:00
|
|
|
|
|
|
|
#endif // __AP_BARO_H__
|