2020-01-16 02:51:11 -04:00
|
|
|
/*
|
|
|
|
dummy backend barometer. Used during board bringup. Selected using
|
|
|
|
BARO line in hwdef.dat
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "AP_Baro_Backend.h"
|
|
|
|
|
2022-01-26 23:58:56 -04:00
|
|
|
#if AP_BARO_DUMMY_ENABLED
|
|
|
|
|
2020-01-16 02:51:11 -04:00
|
|
|
class AP_Baro_Dummy : public AP_Baro_Backend
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AP_Baro_Dummy(AP_Baro &baro);
|
|
|
|
void update(void) override;
|
|
|
|
static AP_Baro_Backend *probe(AP_Baro &baro) {
|
2024-05-26 22:24:09 -03:00
|
|
|
return NEW_NOTHROW AP_Baro_Dummy(baro);
|
2020-01-16 02:51:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
uint8_t _instance;
|
|
|
|
};
|
2022-01-26 23:58:56 -04:00
|
|
|
|
|
|
|
#endif // AP_BARO_DUMMY_ENABLED
|