Print QZSS SV ID with offset

Adding QZSS SV ID offset for
logging.

Change-Id: I19fc6ba93d222b0646e3f6e2e59fe84ce42fbae4
CRs-Fixed: 2272374
This commit is contained in:
Saurabh Srivastava 2018-07-03 23:25:25 +05:30 committed by Gerrit - the friendly Code Review server
parent f487bbb4ec
commit aa6481f638

View file

@ -320,11 +320,15 @@ void LocApiBase::reportSv(GnssSvNotification& svNotify)
sizeof(constellationString) / sizeof(constellationString[0]) - 1) { sizeof(constellationString) / sizeof(constellationString[0]) - 1) {
svNotify.gnssSvs[i].type = GNSS_SV_TYPE_UNKNOWN; 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",
i, i,
13, 13,
constellationString[svNotify.gnssSvs[i].type], constellationString[svNotify.gnssSvs[i].type],
svNotify.gnssSvs[i].svId, displaySvId,
svNotify.gnssSvs[i].cN0Dbhz, svNotify.gnssSvs[i].cN0Dbhz,
svNotify.gnssSvs[i].elevation, svNotify.gnssSvs[i].elevation,
svNotify.gnssSvs[i].azimuth, svNotify.gnssSvs[i].azimuth,