diff options
author | Harikrishnan Hariharan <hahariha@codeaurora.org> | 2016-10-26 16:15:39 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-28 02:54:43 -0700 |
commit | 90a730d1798a4dcafc8ec622294827234d895fda (patch) | |
tree | b157cba2b867500c74c9c309b1854529cdb17f71 /core/LocApiBase.cpp | |
parent | c75f2c69083eca691dc36d5d8bdafca74b1819bb (diff) | |
download | gps-90a730d1798a4dcafc8ec622294827234d895fda.tar.gz |
Mark SV used_in_fix based on the most recent position report
When SV report comes, mark used_in_fix based on the most recent
position report.
Change-Id: I98f3f4e7836de86f9025bae446cdeac6d1eb5862
CRs-Fixed: 1080013
Diffstat (limited to 'core/LocApiBase.cpp')
-rw-r--r-- | core/LocApiBase.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index 3af79b2..e67f956 100644 --- a/core/LocApiBase.cpp +++ b/core/LocApiBase.cpp @@ -237,13 +237,18 @@ void LocApiBase::reportPosition(UlpLocation &location, LOC_LOGV("flags: %d\n source: %d\n latitude: %f\n longitude: %f\n " "altitude: %f\n speed: %f\n bearing: %f\n accuracy: %f\n " "timestamp: %lld\n rawDataSize: %d\n rawData: %p\n " - "Session status: %d\n Technology mask: %u", + "Session status: %d\n Technology mask: %u\n " + "SV used in fix (gps/glo/bds/gal) : (%x/%x/%x/%x)", location.gpsLocation.flags, location.position_source, location.gpsLocation.latitude, location.gpsLocation.longitude, location.gpsLocation.altitude, location.gpsLocation.speed, location.gpsLocation.bearing, location.gpsLocation.accuracy, location.gpsLocation.timestamp, location.rawDataSize, - location.rawData, status, loc_technology_mask); + location.rawData, status, loc_technology_mask, + locationExtended.gnss_sv_used_ids.gps_sv_used_ids_mask, + locationExtended.gnss_sv_used_ids.glo_sv_used_ids_mask, + locationExtended.gnss_sv_used_ids.bds_sv_used_ids_mask, + locationExtended.gnss_sv_used_ids.gal_sv_used_ids_mask); // loop through adapters, and deliver to all adapters. TO_ALL_LOCADAPTERS( mLocAdapters[i]->reportPosition(location, |