diff options
author | qctecmdr <qctecmdr@localhost> | 2019-06-19 22:31:20 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-06-19 22:31:20 -0700 |
commit | 98896798de4da8d9fb9fec384533f3df104d862b (patch) | |
tree | 019859a5585e804437ede07a114366605a4774e8 /gnss | |
parent | a261aa0493ca3e1d55047f12d6e3c0301fd9e8b7 (diff) | |
parent | 49f7e15a816f9c4139ac3406374a608c2168f50b (diff) | |
download | gps-98896798de4da8d9fb9fec384533f3df104d862b.tar.gz |
Merge "GnssAdapter: add support for ppe fix type and calibration info"
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 a2a507a..747ddf9 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; + } } |