You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
449 B
22 lines
449 B
#pragma once |
|
|
|
#include "AP_Compass.h" |
|
#include "AP_Compass_Backend.h" |
|
#include <AP_ExternalAHRS/AP_ExternalAHRS.h> |
|
|
|
#if HAL_EXTERNAL_AHRS_ENABLED |
|
|
|
class AP_Compass_ExternalAHRS : public AP_Compass_Backend |
|
{ |
|
public: |
|
AP_Compass_ExternalAHRS(uint8_t instance); |
|
|
|
void read(void) override; |
|
|
|
private: |
|
void handle_external(const AP_ExternalAHRS::mag_data_message_t &pkt) override; |
|
uint8_t instance; |
|
}; |
|
|
|
#endif // HAL_EXTERNAL_AHRS_ENABLED |
|
|
|
|