From aa6481f63899a072602191893c0b9e25fba758dc Mon Sep 17 00:00:00 2001 From: Saurabh Srivastava Date: Tue, 3 Jul 2018 23:25:25 +0530 Subject: [PATCH] Print QZSS SV ID with offset Adding QZSS SV ID offset for logging. Change-Id: I19fc6ba93d222b0646e3f6e2e59fe84ce42fbae4 CRs-Fixed: 2272374 --- core/LocApiBase.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index ca26b328..a82e30b2 100644 --- a/core/LocApiBase.cpp +++ b/core/LocApiBase.cpp @@ -320,11 +320,15 @@ void LocApiBase::reportSv(GnssSvNotification& svNotify) sizeof(constellationString) / sizeof(constellationString[0]) - 1) { 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", i, 13, constellationString[svNotify.gnssSvs[i].type], - svNotify.gnssSvs[i].svId, + displaySvId, svNotify.gnssSvs[i].cN0Dbhz, svNotify.gnssSvs[i].elevation, svNotify.gnssSvs[i].azimuth,