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

          Line data    Source code
       1             : /*
       2             :    This program is free software: you can redistribute it and/or modify
       3             :    it under the terms of the GNU General Public License as published by
       4             :    the Free Software Foundation, either version 3 of the License, or
       5             :    (at your option) any later version.
       6             : 
       7             :    This program is distributed in the hope that it will be useful,
       8             :    but WITHOUT ANY WARRANTY; without even the implied warranty of
       9             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      10             :    GNU General Public License for more details.
      11             : 
      12             :    You should have received a copy of the GNU General Public License
      13             :    along with this program.  If not, see <http://www.gnu.org/licenses/>.
      14             : */
      15             : #include "AP_Frsky_Parameters.h"
      16             : 
      17             : 
      18             : const AP_Param::GroupInfo AP_Frsky_Parameters::var_info[] = {
      19             : #if HAL_WITH_FRSKY_TELEM_BIDIRECTIONAL
      20             :     // @Param: UPLINK_ID
      21             :     // @DisplayName: Uplink sensor id
      22             :     // @Description: Change the uplink sensor id (SPort only)
      23             :     // @Values: -1:Disable,7:7,8:8,9:9,10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26
      24             :     // @User: Advanced
      25             :     AP_GROUPINFO("UPLINK_ID",  1, AP_Frsky_Parameters, _uplink_id, 13),
      26             : 
      27             :     // @Param: DNLINK1_ID
      28             :     // @DisplayName: First downlink sensor id
      29             :     // @Description: Change the first extra downlink sensor id (SPort only)
      30             :     // @Values: -1:Disable,7:7,8:8,9:9,10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26
      31             :     // @User: Advanced
      32             :     AP_GROUPINFO("DNLINK1_ID",  2, AP_Frsky_Parameters, _dnlink1_id, 20),
      33             : 
      34             :     // @Param: DNLINK2_ID
      35             :     // @DisplayName: Second downlink sensor id
      36             :     // @Description: Change the second extra downlink sensor id (SPort only)
      37             :     // @Values: -1:Disable,7:7,8:8,9:9,10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26
      38             :     // @User: Advanced
      39             :     AP_GROUPINFO("DNLINK2_ID",  3, AP_Frsky_Parameters, _dnlink2_id, 7),
      40             : #endif //HAL_WITH_FRSKY_TELEM_BIDIRECTIONAL
      41             : 
      42             :     // @Param: DNLINK_ID
      43             :     // @DisplayName: Default downlink sensor id
      44             :     // @Description: Change the default downlink sensor id (SPort only)
      45             :     // @Values: -1:Disable,7:7,8:8,9:9,10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27
      46             :     // @User: Advanced
      47             :     AP_GROUPINFO("DNLINK_ID",  4, AP_Frsky_Parameters, _dnlink_id, 27),
      48             : 
      49             :     // @Param: OPTIONS
      50             :     // @DisplayName: FRSky Telemetry Options
      51             :     // @Description: A bitmask to set some FRSky Telemetry specific options
      52             :     // @Bitmask: 0:EnableAirspeedAndGroundspeed
      53             :     // @User: Standard
      54             :     AP_GROUPINFO("OPTIONS", 5, AP_Frsky_Parameters, _options, 0),
      55             :     AP_GROUPEND
      56             : };
      57             : 
      58        2098 : AP_Frsky_Parameters::AP_Frsky_Parameters()
      59             : {
      60        2098 :     AP_Param::setup_object_defaults(this, var_info);
      61        2098 : }

Generated by: LCOV version 1.14