NMEA: distinguish between different satellite systems
While working with device that supports multiple satellite systems, we
can receive GSV and GSA messages from different satellite system types.
Previously we did not distinguish the types, so our code was not able
to collect the full information.
For example:
1. We receive $GPGSV (GPS) and save them to the list of satellites in
view.
2. We receive $GLGSV (GLONASS) - we overwrite the list instead of
extending it.
And the situation was even more complicated with $GNGSA (satellites in
use from multiple systems) messages.
This patch tries to fix all these issues and introduce a proper
satellite system type handling.
Fixes: QTBUG-91074
Change-Id: I3fa03710c4318ebc2c10da1b676f7631751cabdb
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| commit | 58b7f95e9ca3ca84e004a26d77ecbe90ea874ea2 |
| parent | 584e03cb5f7d67d76dab6d3cf37649e66d6fad20 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Tue, 2 Mar 2021 17:14:29 +0100 |
- M src/positioning/qgeosatelliteinfo.cpp
- M src/positioning/qgeosatelliteinfo.h
- M src/positioning/qlocationutils.cpp
- M src/positioning/qlocationutils_p.h
- M src/positioning/qnmeasatelliteinfosource.cpp
- M src/positioning/qnmeasatelliteinfosource.h
- M src/positioning/qnmeasatelliteinfosource_p.h
- M tests/auto/qgeosatelliteinfosource/testqgeosatelliteinfosource.cpp
- M tests/auto/qnmeasatelliteinfosource/CMakeLists.txt
- M tests/auto/qnmeasatelliteinfosource/dummy/tst_dummynmeasatelliteinfosource.cpp
- A tests/auto/qnmeasatelliteinfosource/nmea/CMakeLists.txt
- A tests/auto/qnmeasatelliteinfosource/nmea/tst_nmeasatelliteinfosource.cpp