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.
 
 
 
 
 
 

25 lines
492 B

/*
ExternalAHRS backend barometer
*/
#pragma once
#include "AP_Baro_Backend.h"
#if HAL_EXTERNAL_AHRS_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 // HAL_EXTERNAL_AHRS_ENABLED