LCOV - code coverage report
Current view: top level - AP_ADSB/sagetech-sdk - toTOA.c (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             :  * @copyright Copyright (c) 2021 Sagetech, Inc. All rights reserved.
       3             :  *
       4             :  * @file toTOA.c
       5             :  * @author Jacob.Garrison
       6             :  *
       7             :  * @date Mar 2, 2021
       8             :  *
       9             :  */
      10             : 
      11             : #include "sgUtil.h"
      12             : 
      13             : /*
      14             :  * Documented in the header file.
      15             :  */
      16       12465 : float toTOA(const uint8_t bytes[])
      17             : {
      18       12465 :     float toa = toInt16(bytes) & 0xFFFF;
      19       12465 :     return toa / 128.0;
      20             : }

Generated by: LCOV version 1.14