Commit b3fe46d4 authored by Iqbal Inzamam's avatar Iqbal Inzamam

nmea: Add support for GGA messages from more NMEA sources

Based on patch from Daniel Aleksandersen <code@daniel.priv.no>
Expands GPS specific GGA test with tests for GGA messages from other
well-known Talker IDs in NMEA 4.1 including Galieo, BeiDou, GLONASS,
and GNSS (generic/mixed source mode).
GGA messages use the same format regardless of the Talker ID.

* Improves device and GNSS network support.
* Improves accuracy for users in Europe, Russia, China, and elsewhere.
* Resolves compatibility problem with GPS devices that only report in
  GNGGA and not GPGGA even in single-network mode.

Fixes:#60
parent ed2d81fe
Pipeline #22479 passed with stage
in 14 minutes and 14 seconds
......@@ -482,8 +482,13 @@ on_read_gga_sentence (GObject *object,
}
g_debug ("Network source sent: \"%s\"", message);
if (!g_str_has_prefix (message, "$GPGGA")) {
/* FIXME: Handle other useful NMEA sentences too */
if (!g_str_has_prefix (message, "$GAGGA") && /* Galieo */
!g_str_has_prefix (message, "$GBGGA") && /* BeiDou */
!g_str_has_prefix (message, "$BDGGA") && /* BeiDou */
!g_str_has_prefix (message, "$GLGGA") && /* GLONASS */
!g_str_has_prefix (message, "$GNGGA") && /* GNSS (combined) */
!g_str_has_prefix (message, "$GPGGA") && /* GPS, SBAS, QZSS */
!g_str_has_prefix (message, "$QZGGA")) { /* QZSS */
g_debug ("Ignoring non-GGA sentence from NMEA source");
goto READ_NEXT_LINE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment