diff options
author | Hoss Zhou <zhouh@codeaurora.org> | 2019-10-28 18:51:55 +0800 |
---|---|---|
committer | Wei Chen <weic@codeaurora.org> | 2019-11-07 10:21:41 -0800 |
commit | 98dbf27562ee0c8c25f63622f7169bccc740fa7a (patch) | |
tree | 1315073a3dd19f25554e076026f557d66c39855f /core/LocApiBase.cpp | |
parent | 4407bac1fc4b7cf602570980df135e17219f7744 (diff) |
fix sv id mismatch issues
Change-Id: I7de3f8e3077dd24fb762f08e08f804c3ea9ecda4
CRs-Fixed: 2554984
Diffstat (limited to 'core/LocApiBase.cpp')
-rw-r--r-- | core/LocApiBase.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index 1717b87..3f1a9b0 100644 --- a/core/LocApiBase.cpp +++ b/core/LocApiBase.cpp @@ -406,19 +406,17 @@ void LocApiBase::reportSv(GnssSvNotification& svNotify) svNotify.gnssSvs[i].type = GNSS_SV_TYPE_UNKNOWN; } // Display what we report to clients - uint16_t displaySvId = GNSS_SV_TYPE_QZSS == svNotify.gnssSvs[i].type ? - svNotify.gnssSvs[i].svId + QZSS_SV_PRN_MIN - 1 : - svNotify.gnssSvs[i].svId; - LOC_LOGV(" %03zu: %*s %02d %f %f %f %f 0x%02X", + LOC_LOGV(" %03zu: %*s %02d %f %f %f %f 0x%02X 0x%2X", i, 13, constellationString[svNotify.gnssSvs[i].type], - displaySvId, + svNotify.gnssSvs[i].svId, svNotify.gnssSvs[i].cN0Dbhz, svNotify.gnssSvs[i].elevation, svNotify.gnssSvs[i].azimuth, svNotify.gnssSvs[i].carrierFrequencyHz, - svNotify.gnssSvs[i].gnssSvOptionsMask); + svNotify.gnssSvs[i].gnssSvOptionsMask, + svNotify.gnssSvs[i].gnssSignalTypeMask); } // loop through adapters, and deliver to all adapters. TO_ALL_LOCADAPTERS( |