From 80700945af08808f199dea54528889dd5ae1d41d Mon Sep 17 00:00:00 2001 From: vitaliy-gis Date: Tue, 15 Oct 2019 11:15:12 +0300 Subject: [PATCH] UBX: discard time from unquality satellites Tested on Ublox NEO-7M. Quality indicator > 7 (and wrong time) in some observations. Convbin generates many empty rows in observation file. --- src/rcv/ublox.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rcv/ublox.c b/src/rcv/ublox.c index 1b050a013..346911469 100644 --- a/src/rcv/ublox.c +++ b/src/rcv/ublox.c @@ -744,10 +744,11 @@ static int decode_trkd5(raw_t *raw) default: off=78; len=56; break; } for (i=0,p=raw->buff+off;p-raw->bufflen-2;i++,p+=len) { - if (U1(p+41)<4) continue; + qi =U1(p+41)&7; + if (qi<4||7tr) tr=t; + if (t>tr) {tr=t; break; }; } if (tr<0.0) return 0;