From 5977ec1da288579da006e0bf1d72b9e69666cb4e Mon Sep 17 00:00:00 2001 From: Tomoji Takasu Date: Tue, 30 Jan 2018 11:03:44 +0900 Subject: [PATCH] fix problem on half-cycle slip handling. --- src/rcv/ublox.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rcv/ublox.c b/src/rcv/ublox.c index ad6b4e30d..4b521cab4 100644 --- a/src/rcv/ublox.c +++ b/src/rcv/ublox.c @@ -320,7 +320,11 @@ static int decode_rxmrawx(raw_t *raw) /* LLI: bit1=loss-of-lock,bit2=half-cycle-invalid */ raw->obs.data[n].LLI[0]|=slip?LLI_SLIP:0; +#if 0 raw->obs.data[n].LLI[0]|=halfc?LLI_HALFA:0; /* half-cycle subtraced */ +#else + if (halfc!=raw->halfc[sat-1][0]) raw->obs.data[n].LLI[0]|=LLI_SLIP; +#endif raw->obs.data[n].LLI[0]|=halfv?0:LLI_HALFC; raw->lockt[sat-1][0]=lockt; raw->halfc[sat-1][0]=halfc;