From 3ac97c97f9c31bb04ba236fc345fe798c2b643f1 Mon Sep 17 00:00:00 2001 From: Tim Everett <tim.everett3@gmail.com> Date: Wed, 20 Nov 2019 13:36:14 -0700 Subject: [PATCH] - Fix bug in handling of half cycle ambiguity flag in RTCM3 MSM messages --- src/rtcm3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtcm3.c b/src/rtcm3.c index 636c2fe..7807f97 100644 --- a/src/rtcm3.c +++ b/src/rtcm3.c @@ -1890,7 +1890,7 @@ static void save_msm_obs(rtcm_t *rtcm, int sys, msm_h_t *h, const double *r, rtcm->obs.data[index].D[ind[k]]=(float)(-(rr[i]+rrf[j])/wl); } rtcm->obs.data[index].LLI[ind[k]]= - lossoflock(rtcm,sat,ind[k],lock[j])+(half[j]?3:0); + lossoflock(rtcm,sat,ind[k],lock[j])+(half[j]?2:0); rtcm->obs.data[index].SNR [ind[k]]=(unsigned char)(cnr[j]*4.0); rtcm->obs.data[index].code[ind[k]]=code[k]; } -- GitLab