From 2d20df1ab23952c66a010eefc5d5ee1a43169b4e Mon Sep 17 00:00:00 2001
From: Tim Everett <tim.everett3@gmail.com>
Date: Mon, 23 Sep 2019 16:49:51 -0600
Subject: [PATCH] - Undo changes to ambiguity resolution from last commit until
 the change is better understood

---
 src/rtkpos.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/rtkpos.c b/src/rtkpos.c
index f32793f..86a0070 100644
--- a/src/rtkpos.c
+++ b/src/rtkpos.c
@@ -1798,9 +1798,8 @@ static int manage_amb_LAMBDA(rtk_t *rtk, double *bias, double *xa, const int *sa
 
     /* find and count sats used last time for AR */
     for (f=0;f<nf;f++) for (i=0;i<ns;i++) 
-            if (rtk->ssat[sat[i]-1].vsat[f] && rtk->ssat[sat[i]-1].lock[f]>=0 && rtk->ssat[sat[i]-1].azel[1]>=rtk->opt.elmin) {
+            if (rtk->ssat[sat[i]-1].vsat[f]&&rtk->ssat[sat[i]-1].lock[f]>0)
                 arsats[ar++]=i;
-            }
 
     /* if no fix on previous sample and enough sats, exclude next sat in list */
     trace(3,"num sats used last AR: %d\n",ar);
-- 
GitLab