From a52617d5b44f78f4cc56784fe7e0adc2cf92ff8c Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 6 May 2017 13:29:43 +0200 Subject: [PATCH] Make code more readable --- src/algorithms/libs/rtklib/rtklib_rtkpos.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algorithms/libs/rtklib/rtklib_rtkpos.cc b/src/algorithms/libs/rtklib/rtklib_rtkpos.cc index 34efbf775..ae7ef12bb 100644 --- a/src/algorithms/libs/rtklib/rtklib_rtkpos.cc +++ b/src/algorithms/libs/rtklib/rtklib_rtkpos.cc @@ -2135,7 +2135,7 @@ int rtkpos(rtk_t *rtk, const obsd_t *obs, int n, const nav_t *nav) if (opt->refpos <= POSOPT_RINEX && opt->mode != PMODE_SINGLE && opt->mode != PMODE_MOVEB) { - for (i = 0;i<6;i++) rtk->rb[i] = i<3 ? opt->rb[i] : 0.0; + for (i = 0;i<6;i++) rtk->rb[i] = i < 3 ? opt->rb[i] : 0.0; } /* count rover/base station observations */ for (nu = 0;nu sol.age = (float)timediff(obs[0].time, obs[nu].time); - if (fabs(rtk->sol.age)>opt->maxtdiff) + if (fabs(rtk->sol.age) > opt->maxtdiff) { errmsg(rtk, "age of differential error (age=%.1f)\n", rtk->sol.age); outsolstat(rtk);