From 37093a08c59e1fab8d6823b9b7ef6c6043d57330 Mon Sep 17 00:00:00 2001 From: Tomoji Takasu Date: Tue, 30 Jan 2018 11:04:07 +0900 Subject: [PATCH] fix problem on half-cycle slip handling. --- src/rcv/novatel.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rcv/novatel.c b/src/rcv/novatel.c index 9c8471dd5..ec2c96f91 100644 --- a/src/rcv/novatel.c +++ b/src/rcv/novatel.c @@ -352,7 +352,11 @@ static int decode_rangecmpb(raw_t *raw) lli=0; } if (!parity) lli|=LLI_HALFC; +#if 0 if (halfc ) lli|=LLI_HALFA; +#else + if (halfc!=raw->halfc[sat-1][pos]) lli|=LLI_SLIP; +#endif raw->tobs [sat-1][pos]=raw->time; raw->lockt[sat-1][pos]=lockt; raw->halfc[sat-1][pos]=halfc; @@ -441,7 +445,11 @@ static int decode_rangeb(raw_t *raw) lli=0; } if (!parity) lli|=LLI_HALFC; +#if 0 if (halfc ) lli|=LLI_HALFA; +#else + if (halfc!=raw->halfc[sat-1][pos]) lli|=LLI_SLIP; +#endif raw->tobs [sat-1][pos]=raw->time; raw->lockt[sat-1][pos]=lockt; raw->halfc[sat-1][pos]=halfc;