CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_Baro/AP_Baro_Dummy.h
Views: 1798
1
/*
2
dummy backend barometer. Used during board bringup. Selected using
3
BARO line in hwdef.dat
4
*/
5
#pragma once
6
7
#include "AP_Baro_Backend.h"
8
9
#if AP_BARO_DUMMY_ENABLED
10
11
class AP_Baro_Dummy : public AP_Baro_Backend
12
{
13
public:
14
AP_Baro_Dummy(AP_Baro &baro);
15
void update(void) override;
16
static AP_Baro_Backend *probe(AP_Baro &baro) {
17
return NEW_NOTHROW AP_Baro_Dummy(baro);
18
}
19
20
private:
21
uint8_t _instance;
22
};
23
24
#endif // AP_BARO_DUMMY_ENABLED
25
26