LCOV - code coverage report
Current view: top level - home/pbarker/rc/ardupilot/ArduPlane - mode_fbwb.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 "mode.h"
       2             : #include "Plane.h"
       3             : 
       4           6 : bool ModeFBWB::_enter()
       5             : {
       6             : #if HAL_SOARING_ENABLED
       7             :     // for ArduSoar soaring_controller
       8           6 :     plane.g2.soaring_controller.init_cruising();
       9             : #endif
      10             : 
      11           6 :     plane.set_target_altitude_current();
      12             : 
      13           6 :     return true;
      14             : }
      15             : 
      16       17173 : void ModeFBWB::update()
      17             : {
      18             :     // Thanks to Yury MonZon for the altitude limit code!
      19       17173 :     plane.nav_roll_cd = plane.channel_roll->norm_input() * plane.roll_limit_cd;
      20       17173 :     plane.update_load_factor();
      21       17173 :     plane.update_fbwb_speed_height();
      22             : 
      23       17173 : }
      24             : 

Generated by: LCOV version 1.14