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.cpp
Views: 1798
1
#include "AP_Baro_Dummy.h"
2
3
#if AP_BARO_DUMMY_ENABLED
4
5
AP_Baro_Dummy::AP_Baro_Dummy(AP_Baro &baro) :
6
AP_Baro_Backend(baro)
7
{
8
_instance = _frontend.register_sensor();
9
}
10
11
// Read the sensor
12
void AP_Baro_Dummy::update(void)
13
{
14
_copy_to_frontend(0, 91300, 21);
15
}
16
17
#endif // AP_BARO_DUMMY_ENABLED
18
19