LCOV - code coverage report
Current view: top level - home/pbarker/rc/ardupilot/AntennaTracker - GCS_Tracker.h (source / functions) Hit Total Coverage
Test: lcov.info Lines: 3 3 100.0 %
Date: 2026-09-09 11:02:08 Functions: 2 3 66.7 %

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : #include <GCS_MAVLink/GCS.h>
       4             : #include "GCS_MAVLink_Tracker.h"
       5             : 
       6             : class GCS_Tracker : public GCS
       7             : {
       8             :     friend class Tracker; // for access to _chan in parameter declarations
       9             :     friend class GCS_MAVLINK_Tracker;
      10             : 
      11             : public:
      12             : 
      13             :     // the following define expands to a pair of methods to retrieve a
      14             :     // pointer to an object of the correct subclass for the link at
      15             :     // offset ofs.  These are of the form:
      16             :     // GCS_MAVLINK_XXXX *chan(const uint8_t ofs) override;
      17             :     // const GCS_MAVLINK_XXXX *chan(const uint8_t ofs) override const;
      18     2190014 :     GCS_MAVLINK_CHAN_METHOD_DEFINITIONS(GCS_MAVLINK_Tracker);
      19             : 
      20             :     void update_vehicle_sensor_status_flags() override;
      21             : 
      22             :     uint32_t custom_mode() const override;
      23             :     MAV_TYPE frame_type() const override;
      24             : 
      25             : protected:
      26             : 
      27          99 :     GCS_MAVLINK_Tracker *new_gcs_mavlink_backend(AP_HAL::UARTDriver &uart) override {
      28          99 :         return NEW_NOTHROW GCS_MAVLINK_Tracker(uart);
      29             :     }
      30             : 
      31             : private:
      32             : 
      33             :     void request_datastream_position(uint8_t sysid, uint8_t compid);
      34             :     void request_datastream_airpressure(uint8_t sysid, uint8_t compid);
      35             : 
      36             : };

Generated by: LCOV version 1.14