2 * This file is part of nmealib.
4 * Copyright (c) 2008 Timur Sinitsyn
5 * Copyright (c) 2011 Ferry Huberts
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include <nmea/sentence.h>
25 void nmea_zero_GPGGA(nmeaGPGGA *pack) {
26 memset(pack, 0, sizeof(nmeaGPGGA));
27 nmea_time_now(&pack->utc, &pack->present);
30 pack->elv_units = 'M';
31 pack->diff_units = 'M';
34 void nmea_zero_GPGSA(nmeaGPGSA *pack) {
35 memset(pack, 0, sizeof(nmeaGPGSA));
37 pack->fix_type = NMEA_FIX_BAD;
40 void nmea_zero_GPGSV(nmeaGPGSV *pack) {
41 memset(pack, 0, sizeof(nmeaGPGSV));
44 void nmea_zero_GPRMC(nmeaGPRMC *pack) {
45 memset(pack, 0, sizeof(nmeaGPRMC));
46 nmea_time_now(&pack->utc, &pack->present);
50 pack->magvar_ew = 'E';
54 void nmea_zero_GPVTG(nmeaGPVTG *pack) {
55 memset(pack, 0, sizeof(nmeaGPVTG));