diff --git a/src/rtkpos.c b/src/rtkpos.c index f32793f79de14ef431d2119683443e591bbff49c..86a0070dbff660fc31a3076e402314f69cefc0b6 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);