diff options
Diffstat (limited to 'src/GPSService.cpp')
| -rw-r--r-- | src/GPSService.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
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); + }); } |
