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_Compass/AP_Compass_ExternalAHRS.h
Views: 1798
1
#pragma once
2
3
#include "AP_Compass_config.h"
4
5
#if AP_COMPASS_EXTERNALAHRS_ENABLED
6
7
#include "AP_Compass.h"
8
#include "AP_Compass_Backend.h"
9
#include <AP_ExternalAHRS/AP_ExternalAHRS.h>
10
11
class AP_Compass_ExternalAHRS : public AP_Compass_Backend
12
{
13
public:
14
AP_Compass_ExternalAHRS(uint8_t instance);
15
16
void read(void) override;
17
18
private:
19
void handle_external(const AP_ExternalAHRS::mag_data_message_t &pkt) override;
20
uint8_t instance;
21
};
22
23
#endif // AP_COMPASS_EXTERNALAHRS_ENABLED
24
25