diff options
author | Saurabh Srivastava <ssrivast@codeaurora.org> | 2018-07-03 23:25:25 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-07-04 08:12:39 -0700 |
commit | aa6481f63899a072602191893c0b9e25fba758dc (patch) | |
tree | 26d996a2ef8e05193d594a481e901257ea725a37 /core/LocApiBase.cpp | |
parent | f487bbb4ec18dd814f7eb4381ee824456493715a (diff) | |
download | gps-aa6481f63899a072602191893c0b9e25fba758dc.tar.gz |
Print QZSS SV ID with offset
Adding QZSS SV ID offset for
logging.
Change-Id: I19fc6ba93d222b0646e3f6e2e59fe84ce42fbae4
CRs-Fixed: 2272374
Diffstat (limited to 'core/LocApiBase.cpp')
-rw-r--r-- | core/LocApiBase.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index ca26b32..a82e30b 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, |