diff options
author | Wei Chen <weic@codeaurora.org> | 2019-04-19 15:21:27 -0700 |
---|---|---|
committer | Harikrishnan Hariharan <hahariha@codeaurora.org> | 2019-06-19 15:03:39 +0530 |
commit | 49f7e15a816f9c4139ac3406374a608c2168f50b (patch) | |
tree | 8576c104b2d73918c57b7ddba83108130acd2cc8 /gnss | |
parent | 16c0367c5b3e17d76d9a68c8057d24c50252bf84 (diff) | |
download | gps-49f7e15a816f9c4139ac3406374a608c2168f50b.tar.gz |
GnssAdapter: add support for ppe fix type and calibration info
(1) Add support to report out calibration confidence in position
report
(2) Update gps quality of GGA, mode indicator for GMC and VTG
NMEA sentences
Change-Id: Ia1aa5283deffed6638172b90a41b481c2d199229
CRs-fixed: 2438838
Diffstat (limited to 'gnss')
-rw-r--r-- | gnss/GnssAdapter.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp index 7ef46e6..0f74e97 100644 --- a/gnss/GnssAdapter.cpp +++ b/gnss/GnssAdapter.cpp @@ -475,6 +475,16 @@ GnssAdapter::convertLocationInfo(GnssLocationInfoNotification& out, out.flags |= GNSS_LOCATION_INFO_TIME_UNC_BIT; out.timeUncMs = locationExtended.timeUncMs; } + + if (GPS_LOCATION_EXTENDED_HAS_CALIBRATION_CONFIDENCE & locationExtended.flags) { + out.flags |= GNSS_LOCATION_INFO_CALIBRATION_CONFIDENCE_BIT; + out.calibrationConfidence = locationExtended.calibrationConfidence; + } + + if (GPS_LOCATION_EXTENDED_HAS_CALIBRATION_STATUS & locationExtended.flags) { + out.flags |= GNSS_LOCATION_INFO_CALIBRATION_STATUS_BIT; + out.calibrationStatus = locationExtended.calibrationStatus; + } } |