AllStarLink / Voter

https://wiki.allstarlink.org/wiki/VOTER
GNU Affero General Public License v3.0
5 stars 3 forks source link

$GPGGA Handling #9

Open ve7fet opened 2 years ago

ve7fet commented 2 years ago

In voter.c, process_gps:

if (strcmp(strs[0],gpgga)) return;

The code following that appears to get the lat/long/alt from the buffer... but it isn't part of a subroutine processing the gpgga string? The if just returns if the string matches gga, without doing anything.

Investigate the handling of that code, and see if it needs to be changed like the other NMEA strings are handled.

ve7fet commented 2 years ago

Remember to add some comments...

n = atoi(strs[6]); //get the GPS quality indicator from $GPGGA

if ((n < 1) || (n > 2)) //Check for: 1 is GPS Fix, 2 is Diff GPS Fix