LCOV - code coverage report
Current view: top level - AP_HAL_SITL - RCInput.cpp (source / functions) Hit Total Coverage
Test: lcov.info Lines: 9 12 75.0 %
Date: 2026-09-09 11:02:08 Functions: 4 5 80.0 %

          Line data    Source code
       1             : #include <AP_HAL/AP_HAL.h>
       2             : #include <AP_RCProtocol/AP_RCProtocol_config.h>
       3             : 
       4             : #if CONFIG_HAL_BOARD == HAL_BOARD_SITL && AP_RCPROTOCOL_ENABLED
       5             : 
       6             : #include "RCInput.h"
       7             : #include <AP_RCProtocol/AP_RCProtocol.h>
       8             : 
       9             : using namespace HALSITL;
      10             : 
      11             : extern const AP_HAL::HAL& hal;
      12             : 
      13        2094 : void RCInput::init()
      14             : {
      15        2094 :     AP::RC().init();
      16        2094 : }
      17             : 
      18    36177494 : bool RCInput::new_input()
      19             : {
      20    36177494 :     return AP::RC().new_input();
      21             : }
      22             : 
      23   119958672 : uint16_t RCInput::read(uint8_t ch)
      24             : {
      25   119958672 :     return AP::RC().read(ch);
      26             : }
      27             : 
      28           0 : uint8_t RCInput::read(uint16_t* periods, uint8_t len)
      29             : {
      30           0 :     AP::RC().read(periods, len);
      31           0 :     return MIN(len, num_channels());
      32             : }
      33             : 
      34     1311839 : uint8_t RCInput::num_channels()
      35             : {
      36     1311839 :     return AP::RC().num_channels();
      37             : }
      38             : 
      39             : #endif

Generated by: LCOV version 1.14