ardupilot/libraries/AP_Baro/AP_Baro.h

23 lines
448 B
C
Raw Normal View History

#ifndef __AP_BARO_H__
#define __AP_BARO_H__
class AP_Baro
{
public:
AP_Baro() {}
2011-11-30 00:30:24 -04:00
virtual uint8_t read() = 0;
virtual int32_t get_pressure() = 0;
2011-11-30 00:30:24 -04:00
virtual int16_t get_temperature() = 0;
virtual float get_altitude() = 0;
2011-11-30 00:30:24 -04:00
virtual int32_t get_raw_pressure() = 0;
virtual int32_t get_raw_temp() = 0;
};
#include "AP_Baro_MS5611.h"
#include "AP_Baro_BMP085.h"
#include "AP_Baro_BMP085_hil.h"
#endif // __AP_BARO_H__