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_ExternalAHRS.h
Views: 1798
1
/*
2
ExternalAHRS backend barometer
3
*/
4
#pragma once
5
6
#include "AP_Baro_Backend.h"
7
8
#if AP_BARO_EXTERNALAHRS_ENABLED
9
10
class AP_Baro_ExternalAHRS : public AP_Baro_Backend
11
{
12
public:
13
AP_Baro_ExternalAHRS(AP_Baro &baro, uint8_t serial_port);
14
void update(void) override;
15
void handle_external(const AP_ExternalAHRS::baro_data_message_t &pkt) override;
16
17
private:
18
uint8_t instance;
19
float sum_pressure;
20
float sum_temp;
21
uint16_t count;
22
};
23
24
#endif // AP_BARO_EXTERNALAHRS_ENABLED
25
26