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

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : #include "AP_Airspeed_config.h"
       4             : 
       5             : #if AP_AIRSPEED_ANALOG_ENABLED
       6             : 
       7             : #include <AP_HAL/AP_HAL.h>
       8             : 
       9             : #include "AP_Airspeed_Backend.h"
      10             : 
      11             : class AP_Airspeed_Analog : public AP_Airspeed_Backend
      12             : {
      13             : public:
      14             :     AP_Airspeed_Analog(AP_Airspeed &frontend, uint8_t _instance);
      15             : 
      16             :     // probe and initialise the sensor
      17             :     bool init(void) override;
      18             : 
      19             :     // return the current differential_pressure in Pascal
      20             :     bool get_differential_pressure(float &pressure) override;
      21             : 
      22             :     // temperature not available via analog backend
      23     1636099 :     bool get_temperature(float &temperature) override { return false; }
      24             : 
      25             : private:
      26             :     AP_HAL::AnalogSource *_source;
      27             : };
      28             : 
      29             : #endif  // AP_AIRSPEED_ANALOG_ENABLED

Generated by: LCOV version 1.14