LCOV - code coverage report
Current view: top level - AP_ADSB/sagetech-sdk - toLatLon.c (source / functions) Hit Total Coverage
Test: lcov.info Lines: 4 4 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 toLatLon.c
       5             :  * @author Jacob.Garrison
       6             :  *
       7             :  * @date Mar 2, 2021
       8             :  *
       9             :  */
      10             : 
      11             : #include "sgUtil.h"
      12             : 
      13             : #define SV_RES_LATLON 180.0 / 8388608.0 // 180 degrees / 2^23
      14             : 
      15             : /*
      16             :  * Documented in the header file.
      17             :  */
      18        8310 : double toLatLon(const uint8_t bytes[])
      19             : {
      20        8310 :     double value = toInt32(bytes);
      21        8310 :     value *= SV_RES_LATLON;
      22             : 
      23        8310 :     return value;
      24             : }

Generated by: LCOV version 1.14