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.
 
 
 
 
 
 

26 lines
554 B

/*
ExternalAHRS backend barometer
*/
#pragma once
#include "AP_Baro_Backend.h"
// AP_BARO_EXTERNALAHRS_ENABLED is defined in AP_Baro.h
#if AP_BARO_EXTERNALAHRS_ENABLED
class AP_Baro_ExternalAHRS : public AP_Baro_Backend
{
public:
AP_Baro_ExternalAHRS(AP_Baro &baro, uint8_t serial_port);
void update(void) override;
void handle_external(const AP_ExternalAHRS::baro_data_message_t &pkt) override;
private:
uint8_t instance;
float sum_pressure;
float sum_temp;
uint16_t count;
};
#endif // AP_BARO_EXTERNALAHRS_ENABLED