Print QZSS SV ID with offset
Adding QZSS SV ID offset for logging. Change-Id: I19fc6ba93d222b0646e3f6e2e59fe84ce42fbae4 CRs-Fixed: 2272374
This commit is contained in:
parent
f487bbb4ec
commit
aa6481f638
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue