LCOV - code coverage report
Current view: top level - home/lbartoletti/qgis/external/nmea - sentence.c (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 0 35 0.0 %
Date: 2021-03-26 12:19:53 Functions: 0 0 -
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            : * Copyright Tim (xtimor@gmail.com)
       3                 :            : *
       4                 :            : * NMEA library is free software; you can redistribute it and/or modify
       5                 :            : * it under the terms of the GNU Lesser General Public License as published by
       6                 :            : * the Free Software Foundation; either version 2 of the License, or
       7                 :            : * (at your option) any later version.
       8                 :            : *
       9                 :            : * This program is distributed in the hope that it will be useful,
      10                 :            : * but WITHOUT ANY WARRANTY; without even the implied warranty of
      11                 :            : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      12                 :            : * GNU Lesser General Public License for more details.
      13                 :            : *
      14                 :            : * You should have received a copy of the GNU Lesser General Public License
      15                 :            : * along with this program.  If not, see <http://www.gnu.org/licenses/>
      16                 :            : */
      17                 :            : /*
      18                 :            :  *
      19                 :            :  * NMEA library
      20                 :            :  * URL: http://nmea.sourceforge.net
      21                 :            :  * Author: Tim (xtimor@gmail.com)
      22                 :            :  * Licence: http://www.gnu.org/licenses/lgpl.html
      23                 :            :  * $Id: sentence.c 17 2008-03-11 11:56:11Z xtimor $
      24                 :            :  *
      25                 :            :  */
      26                 :            : 
      27                 :            : #include "sentence.h"
      28                 :            : 
      29                 :            : #include <string.h>
      30                 :            : 
      31                 :          0 : void nmea_zero_GPGGA( nmeaGPGGA *pack )
      32                 :            : {
      33                 :          0 :   memset( pack, 0, sizeof( nmeaGPGGA ) );
      34                 :          0 :   nmea_time_now( &pack->utc );
      35                 :          0 :   pack->ns = 'N';
      36                 :          0 :   pack->ew = 'E';
      37                 :          0 :   pack->elv_units = 'M';
      38                 :          0 :   pack->diff_units = 'M';
      39                 :          0 : }
      40                 :            : 
      41                 :          0 : void nmea_zero_GPGST( nmeaGPGST *pack )
      42                 :            : {
      43                 :          0 :   memset( pack, 0, sizeof( nmeaGPGST ) );
      44                 :          0 :   nmea_time_now( &pack->utc );
      45                 :          0 : }
      46                 :            : 
      47                 :          0 : void nmea_zero_GPGSA( nmeaGPGSA *pack )
      48                 :            : {
      49                 :          0 :   memset( pack, 0, sizeof( nmeaGPGSA ) );
      50                 :          0 :   pack->fix_mode = 'A';
      51                 :          0 :   pack->fix_type = NMEA_FIX_BAD;
      52                 :          0 : }
      53                 :            : 
      54                 :          0 : void nmea_zero_GPGSV( nmeaGPGSV *pack )
      55                 :            : {
      56                 :          0 :   memset( pack, 0, sizeof( nmeaGPGSV ) );
      57                 :          0 : }
      58                 :            : 
      59                 :          0 : void nmea_zero_GPRMC( nmeaGPRMC *pack )
      60                 :            : {
      61                 :          0 :   memset( pack, 0, sizeof( nmeaGPRMC ) );
      62                 :          0 :   nmea_time_now( &pack->utc );
      63                 :          0 :   pack->status = 'V';
      64                 :          0 :   pack->ns = 'N';
      65                 :          0 :   pack->ew = 'E';
      66                 :          0 :   pack->declin_ew = 'E';
      67                 :          0 : }
      68                 :            : 
      69                 :          0 : void nmea_zero_GPVTG( nmeaGPVTG *pack )
      70                 :            : {
      71                 :          0 :   memset( pack, 0, sizeof( nmeaGPVTG ) );
      72                 :          0 :   pack->dir_t = 'T';
      73                 :          0 :   pack->dec_m = 'M';
      74                 :          0 :   pack->spn_n = 'N';
      75                 :          0 :   pack->spk_k = 'K';
      76                 :          0 : }

Generated by: LCOV version 1.14