From 2a1649ace6a5cd9f9d075fadb1391a9e275fd692 Mon Sep 17 00:00:00 2001 From: f0xx Date: Thu, 29 Oct 2020 14:22:18 +0300 Subject: applying glonass/beidu handlers --- src/GPSService.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/GPSService.cpp') diff --git a/src/GPSService.cpp b/src/GPSService.cpp index 65bf79f..74e1c9c 100644 --- a/src/GPSService.cpp +++ b/src/GPSService.cpp @@ -79,18 +79,42 @@ void GPSService::attachToParser(NMEAParser& _parser){ _parser.setSentenceHandler("GPGGA", [this](const NMEASentence& nmea){ this->read_GPGGA(nmea); }); + _parser.setSentenceHandler("GNGGA", [this](const NMEASentence& nmea){ + this->read_GPGGA(nmea); + }); _parser.setSentenceHandler("GPGSA", [this](const NMEASentence& nmea){ this->read_GPGSA(nmea); }); + _parser.setSentenceHandler("GLGSA", [this](const NMEASentence& nmea){ + this->read_GPGSA(nmea); + }); + _parser.setSentenceHandler("GNGSA", [this](const NMEASentence& nmea){ + this->read_GPGSA(nmea); + }); + _parser.setSentenceHandler("BDGSA", [this](const NMEASentence& nmea){ + this->read_GPGSA(nmea); + }); _parser.setSentenceHandler("GPGSV", [this](const NMEASentence& nmea){ this->read_GPGSV(nmea); }); + _parser.setSentenceHandler("BDGSV", [this](const NMEASentence& nmea){ + this->read_GPGSV(nmea); + }); + _parser.setSentenceHandler("GLGSV", [this](const NMEASentence& nmea){ + this->read_GPGSV(nmea); + }); _parser.setSentenceHandler("GPRMC", [this](const NMEASentence& nmea){ this->read_GPRMC(nmea); }); + _parser.setSentenceHandler("GNRMC", [this](const NMEASentence& nmea){ + this->read_GPRMC(nmea); + }); _parser.setSentenceHandler("GPVTG", [this](const NMEASentence& nmea){ this->read_GPVTG(nmea); }); + _parser.setSentenceHandler("GNVTG", [this](const NMEASentence& nmea){ + this->read_GPVTG(nmea); + }); } -- cgit v1.2.3