mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_Baro: Create virtual interface
This commit is contained in:
parent
d7f77aec93
commit
d113992c10
@ -6,11 +6,13 @@ class AP_Baro
|
||||
{
|
||||
public:
|
||||
AP_Baro() {}
|
||||
virtual void init() = 0;
|
||||
virtual uint8_t update() = 0;
|
||||
virtual uint8_t read() = 0;
|
||||
virtual int32_t get_pressure() = 0;
|
||||
virtual float get_temp() = 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;
|
||||
};
|
||||
|
||||
#include "AP_Baro_MS5611.h"
|
||||
|
Loading…
Reference in New Issue
Block a user