Skip to content

Commit 8b8ce85

Browse files
Revert PR #855 that defaults rover position because the default rover or base position may be completely inaccurate in two common situations, one where the positions are not used for the current solution and are leftover from a previous solution or where they are unused and set to LLH 0,0,0. In both cases, the filter fails to converge due to continuous outliers.
1 parent 51896ad commit 8b8ce85

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/rtkpos.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2359,15 +2359,6 @@ extern int rtkpos(rtk_t *rtk, const obsd_t *obs, int n, const nav_t *nav)
23592359
for (i=0;i<6;i++) rtk->rb[i]=i<3?opt->rb[i]:0.0;
23602360
}
23612361

2362-
// Default the rover position.
2363-
if (norm(rtk->sol.rr, 3) <= RE_WGS84 / 2) {
2364-
if (norm(rtk->opt.ru, 3) > RE_WGS84 / 2) {
2365-
for (int i = 0; i < 3; i++) rtk->sol.rr[i] = rtk->opt.ru[i];
2366-
} else if (norm(rtk->rb, 3) > RE_WGS84 / 2) {
2367-
for (int i = 0; i < 3; i++) rtk->sol.rr[i] = rtk->rb[i];
2368-
}
2369-
}
2370-
23712362
/* count rover/base station observations */
23722363
for (nu=0;nu <n&&obs[nu ].rcv==1;nu++) ;
23732364
for (nr=0;nu+nr<n&&obs[nu+nr].rcv==2;nr++) ;

0 commit comments

Comments
 (0)