diff options
author | Nilesh Gharde <ngharde@codeaurora.org> | 2020-04-27 10:53:46 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-05-05 21:15:19 -0700 |
commit | f632132cb2ff005cb57278adeb2c649f70bc5c6f (patch) | |
tree | 98f213019b784e05ca249dd1ad093ed5067c6eff /core/LocApiBase.cpp | |
parent | 7792e6f7df2760231498ac932f27dced37b8d8bb (diff) |
Navic location feature change
Includes Navic blacklisting changes and
constallation enable and disable change
Change-Id: I40530afb81fca3e8aa683ce7d941339915f88c70
CRs-Fixed: 2607003
Diffstat (limited to 'core/LocApiBase.cpp')
-rw-r--r-- | core/LocApiBase.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index 437bb90..47f89dd 100644 --- a/core/LocApiBase.cpp +++ b/core/LocApiBase.cpp @@ -328,7 +328,7 @@ void LocApiBase::reportPosition(UlpLocation& location, "timestamp: %" PRId64 "\n" "Session status: %d\n Technology mask: %u\n " "SV used in fix (gps/glo/bds/gal/qzss) : \ - (0x%" PRIx64 "/0x%" PRIx64 "/0x%" PRIx64 "/0x%" PRIx64 "/0x%" PRIx64 ")", + (0x%" PRIx64 "/0x%" PRIx64 "/0x%" PRIx64 "/0x%" PRIx64 "/0x%" PRIx64 "/0x%" PRIx64 ")", location.gpsLocation.flags, location.position_source, location.gpsLocation.latitude, location.gpsLocation.longitude, location.gpsLocation.altitude, location.gpsLocation.speed, @@ -338,7 +338,8 @@ void LocApiBase::reportPosition(UlpLocation& location, 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, - locationExtended.gnss_sv_used_ids.qzss_sv_used_ids_mask); + locationExtended.gnss_sv_used_ids.qzss_sv_used_ids_mask, + locationExtended.gnss_sv_used_ids.navic_sv_used_ids_mask); // loop through adapters, and deliver to all adapters. TO_ALL_LOCADAPTERS( mLocAdapters[i]->reportPositionEvent(location, locationExtended, @@ -400,7 +401,7 @@ void LocApiBase::reportSv(GnssSvNotification& svNotify) " sv: constellation svid cN0" " elevation azimuth flags", svNotify.count); - for (size_t i = 0; i < svNotify.count && i < LOC_GNSS_MAX_SVS; i++) { + for (size_t i = 0; i < svNotify.count && i < GNSS_SV_MAX; i++) { if (svNotify.gnssSvs[i].type > sizeof(constellationString) / sizeof(constellationString[0]) - 1) { svNotify.gnssSvs[i].type = GNSS_SV_TYPE_UNKNOWN; @@ -535,9 +536,10 @@ void LocApiBase::reportGnssSvIdConfig(const GnssSvIdConfig& config) { // Print the config LOC_LOGv("gloBlacklistSvMask: %" PRIu64 ", bdsBlacklistSvMask: %" PRIu64 ",\n" - "qzssBlacklistSvMask: %" PRIu64 ", galBlacklistSvMask: %" PRIu64, + "qzssBlacklistSvMask: %" PRIu64 ", galBlacklistSvMask: %" PRIu64 ",\n" + "navicBlacklistSvMask: %" PRIu64, config.gloBlacklistSvMask, config.bdsBlacklistSvMask, - config.qzssBlacklistSvMask, config.galBlacklistSvMask); + config.qzssBlacklistSvMask, config.galBlacklistSvMask, config.navicBlacklistSvMask); // Loop through adapters, and deliver to all adapters. TO_ALL_LOCADAPTERS(mLocAdapters[i]->reportGnssSvIdConfigEvent(config)); |