Skip to content

Add support for Multi-GNSS NMEA sentences. #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions decode_aprs.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,14 +920,14 @@ static void aprs_ll_pos_time (decode_aprs_t *A, unsigned char *info, int ilen)

static void aprs_raw_nmea (decode_aprs_t *A, unsigned char *info, int ilen)
{
if (strncmp((char*)info, "$GPRMC,", 7) == 0)
if (strncmp((char*)info, "$GPRMC,", 7) == 0 || strncmp((char *)info, "$GNRMC,", 7) == 0)
{
float speed_knots = G_UNKNOWN;

(void) dwgpsnmea_gprmc ((char*)info, A->g_quiet, &(A->g_lat), &(A->g_lon), &speed_knots, &(A->g_course));
A->g_speed_mph = DW_KNOTS_TO_MPH(speed_knots);
}
else if (strncmp((char*)info, "$GPGGA,", 7) == 0)
else if (strncmp((char*)info, "$GPGGA,", 7) == 0 || strncmp((char *)info, "$GNGGA,", 7) == 0)
{
float alt_meters = G_UNKNOWN;
int num_sat = 0;
Expand Down
4 changes: 2 additions & 2 deletions dwgpsnmea.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ static void * read_gpsnmea_thread (void *arg)

/* Process sentence. */

if (strncmp(gps_msg, "$GPRMC", 6) == 0) {
if (strncmp(gps_msg, "$GPRMC", 6) == 0 || strncmp(gps_msg, "$GNRMC", 6) == 0) {

f = dwgpsnmea_gprmc (gps_msg, 0, &info.dlat, &info.dlon, &info.speed_knots, &info.track);

Expand Down Expand Up @@ -318,7 +318,7 @@ static void * read_gpsnmea_thread (void *arg)
}

}
else if (strncmp(gps_msg, "$GPGGA", 6) == 0) {
else if (strncmp(gps_msg, "$GPGGA", 6) == 0 || strncmp(gps_msg, "$GNGGA", 6) == 0) {
int nsat;

f = dwgpsnmea_gpgga (gps_msg, 0, &info.dlat, &info.dlon, &info.altitude, &nsat);
Expand Down