LCOV - code coverage report
Current view: top level - AP_Airspeed - AP_Airspeed_External.h (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 2 0.0 %
Date: 2026-09-09 11:02:08 Functions: 0 1 0.0 %

          Line data    Source code
       1             : /*
       2             :   external AHRS airspeed backend
       3             :  */
       4             : #pragma once
       5             : 
       6             : #include "AP_Airspeed_config.h"
       7             : 
       8             : #if AP_AIRSPEED_EXTERNAL_ENABLED
       9             : 
      10             : #include "AP_Airspeed_Backend.h"
      11             : #include <AP_ExternalAHRS/AP_ExternalAHRS.h>
      12             : 
      13             : class AP_Airspeed_External : public AP_Airspeed_Backend
      14             : {
      15             : public:
      16             :     AP_Airspeed_External(AP_Airspeed &airspeed, uint8_t instance);
      17             : 
      18           0 :     bool init(void) override {
      19           0 :         return true;
      20             :     }
      21             : 
      22             :     void handle_external(const AP_ExternalAHRS::airspeed_data_message_t &pkt) override;
      23             : 
      24             :     // return the current differential_pressure in Pascal
      25             :     bool get_differential_pressure(float &pressure) override;
      26             : 
      27             :     // temperature not available via analog backend
      28             :     bool get_temperature(float &temperature) override;
      29             :     
      30             : private:
      31             :     float sum_pressure;
      32             :     uint8_t press_count;
      33             :     float sum_temperature;
      34             :     uint8_t temperature_count;
      35             : };
      36             : 
      37             : #endif // AP_AIRSPEED_EXTERNAL_ENABLED
      38             : 

Generated by: LCOV version 1.14