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

          Line data    Source code
       1             : #include "Copter.h"
       2             : 
       3             : #if MODE_GUIDED_ENABLED && AP_SCRIPTING_ENABLED
       4             : // constructor registers custom number and names
       5           1 : ModeGuidedCustom::ModeGuidedCustom(const Number _number, const char* _full_name, const char* _short_name):
       6           1 :     number(_number),
       7           1 :     full_name(_full_name),
       8           1 :     short_name(_short_name)
       9             : {
      10           1 : }
      11             : 
      12          12 : bool ModeGuidedCustom::init(bool ignore_checks)
      13             : {
      14             :     // Stript can block entry
      15          12 :     if (!state.allow_entry) {
      16          11 :         return false;
      17             :     }
      18             : 
      19             :     // Guided entry checks must also pass
      20           1 :     return ModeGuided::init(ignore_checks);
      21             : }
      22             : 
      23             : #endif

Generated by: LCOV version 1.14