mirror of https://github.com/ArduPilot/ardupilot
23 lines
426 B
C
23 lines
426 B
C
|
#pragma once
|
||
|
|
||
|
#include "AP_Compass.h"
|
||
|
#include "AP_Compass_Backend.h"
|
||
|
#include <AP_MSP/msp.h>
|
||
|
|
||
|
#if HAL_MSP_COMPASS_ENABLED
|
||
|
|
||
|
class AP_Compass_MSP : public AP_Compass_Backend
|
||
|
{
|
||
|
public:
|
||
|
AP_Compass_MSP(uint8_t msp_instance);
|
||
|
|
||
|
void read(void) override;
|
||
|
|
||
|
private:
|
||
|
void handle_msp(const MSP::msp_compass_data_message_t &pkt) override;
|
||
|
uint8_t msp_instance;
|
||
|
uint8_t instance;
|
||
|
};
|
||
|
|
||
|
#endif // HAL_MSP_COMPASS_ENABLED
|