summaryrefslogtreecommitdiff
path: root/core/LocApiBase.cpp
diff options
context:
space:
mode:
authorNilesh Gharde <ngharde@codeaurora.org>2020-03-05 08:18:52 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2020-04-07 00:44:59 -0700
commite368c9abd07a82c2037f9bc686ae58a37a0cf089 (patch)
tree4c689d78850abd9f01011353f5ea9db56eecd560 /core/LocApiBase.cpp
parent0032458d68fb9fe584ab5005d2f22161eb895f51 (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.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp
index 261c0e2..74404ec 100644
--- a/core/LocApiBase.cpp
+++ b/core/LocApiBase.cpp
@@ -330,7 +330,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,
@@ -340,7 +340,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,
@@ -409,7 +410,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;
@@ -541,9 +542,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));