diff options
author | Chris Kuethe <ckuethe@users.berlios.de> | 2010-04-14 17:36:16 -0700 |
---|---|---|
committer | Chris Kuethe <ckuethe@users.berlios.de> | 2010-04-14 17:36:16 -0700 |
commit | 1798766db0eb11ace02eb769896a54c979222b45 (patch) | |
tree | b7556c7e9ef9f9e42efa45e03399290ec63b2cd3 /driver_ubx.c | |
parent | 8b81fe9c51c6baebf6396797292614888093bf40 (diff) | |
download | gpsd-1798766db0eb11ace02eb769896a54c979222b45.tar.gz |
A note about the way UBX transmits NAV data
Also, print the receiver channel and source PRN to help
with decoder comparisons between different protocols
Diffstat (limited to 'driver_ubx.c')
-rw-r--r-- | driver_ubx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/driver_ubx.c b/driver_ubx.c index 2ff9d984..34cc7234 100644 --- a/driver_ubx.c +++ b/driver_ubx.c @@ -276,9 +276,10 @@ static void ubx_msg_sfrb(struct gps_device_t *session, unsigned char *buf) { unsigned int words[10], chan, svid; - gpsd_report(LOG_PROG, "UBX_RXM_SFRB\n"); chan = (unsigned int)getub(buf, 0); svid = (unsigned int)getub(buf, 1); + gpsd_report(LOG_PROG, "UBX_RXM_SFRB: %u %u\n", chan, svid); + /* UBX does all the parity checking */ words[0] = (unsigned int)getleul(buf, 2) & 0xffffff; words[1] = (unsigned int)getleul(buf, 6) & 0xffffff; words[2] = (unsigned int)getleul(buf, 10) & 0xffffff; |