Enable Measurement and poly for QDR for automotive usecase
We need to enable Measurement and polynomial reports and need to
send it to QDR Core for it to compute fix and report back DR fix,
hence need to enable them in automotive QDR use case
Change-Id: I8ad29402ded424bbc5a4fd9f6cab74fa7b09f86b
CRs-Fixed: 2017935
diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp
index 3a6ae55..e37a992 100644
--- a/gnss/GnssAdapter.cpp
+++ b/gnss/GnssAdapter.cpp
@@ -1007,6 +1007,18 @@
mask |= LOC_API_ADAPTER_BIT_GNSS_MEASUREMENT;
}
}
+
+ /*
+ ** For Automotive use cases we need to enable MEASUREMENT and POLY
+ ** when QDR is enabled
+ */
+ if(1 == ContextBase::mGps_conf.EXTERNAL_DR_ENABLED) {
+ mask |= LOC_API_ADAPTER_BIT_GNSS_MEASUREMENT;
+ mask |= LOC_API_ADAPTER_BIT_GNSS_SV_POLYNOMIAL_REPORT;
+
+ LOC_LOGD("%s]: Auto usecase, Enable MEAS/POLY - mask 0x%x", __func__, mask);
+ }
+
updateEvtMask(mask, LOC_REGISTRATION_MASK_SET);
}