ardupilot/libraries/AP_Baro/AP_Baro_Dummy.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
460 B
C
Raw Normal View History

/*
dummy backend barometer. Used during board bringup. Selected using
BARO line in hwdef.dat
*/
#pragma once
#include "AP_Baro_Backend.h"
#if AP_BARO_DUMMY_ENABLED
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) {
return new AP_Baro_Dummy(baro);
}
private:
uint8_t _instance;
};
#endif // AP_BARO_DUMMY_ENABLED