Skip to content

Commit

Permalink
fix problem on half-cycle slip handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomojitakasu committed Jan 30, 2018
1 parent 05e8f15 commit 5977ec1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rcv/ublox.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5977ec1

Please sign in to comment.