LCOV - code coverage report
Current view: top level - AP_RangeFinder - AP_RangeFinder_analog.h (source / functions) Hit Total Coverage
Test: lcov.info Lines: 2 2 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_RangeFinder_config.h"
       4             : 
       5             : #if AP_RANGEFINDER_ANALOG_ENABLED
       6             : 
       7             : #include "AP_RangeFinder.h"
       8             : #include "AP_RangeFinder_Backend.h"
       9             : #include "AP_RangeFinder_Params.h"
      10             : 
      11             : class AP_RangeFinder_analog : public AP_RangeFinder_Backend
      12             : {
      13             : public:
      14             :     // constructor
      15             :     AP_RangeFinder_analog(RangeFinder::RangeFinder_State &_state, AP_RangeFinder_Params &_params);
      16             : 
      17             :     // static detection function
      18             :     static bool detect(AP_RangeFinder_Params &_params);
      19             : 
      20             :     // update state
      21             :     void update(void) override;
      22             : 
      23             : protected:
      24             : 
      25       60339 :     MAV_DISTANCE_SENSOR _get_mav_distance_sensor_type() const override {
      26       60339 :         return MAV_DISTANCE_SENSOR_UNKNOWN;
      27             :     }
      28             : 
      29             : private:
      30             :     // update raw voltage
      31             :     void update_voltage(void);
      32             : 
      33             :     AP_HAL::AnalogSource *source;
      34             : };
      35             : 
      36             : #endif  // AP_RANGEFINDER_ANALOG_ENABLED

Generated by: LCOV version 1.14