From 49ab6e425d26236cb7f2a37d481b0b046b48e336 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 30 Oct 2018 10:49:30 +0100 Subject: [PATCH] Fix DOP computation for all signals --- src/algorithms/PVT/libs/rtklib_solver.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algorithms/PVT/libs/rtklib_solver.cc b/src/algorithms/PVT/libs/rtklib_solver.cc index 4d43c18b4..9159407fd 100644 --- a/src/algorithms/PVT/libs/rtklib_solver.cc +++ b/src/algorithms/PVT/libs/rtklib_solver.cc @@ -493,7 +493,7 @@ bool rtklib_solver::get_PVT(const std::map& gnss_observables_ unsigned int used_sats = 0; for (unsigned int i = 0; i < MAXSAT; i++) { - if (rtk_.ssat[i].vsat[0] == 1) used_sats++; + if (rtk_.ssat[i].vs == 1) used_sats++; } std::vector azel; @@ -501,7 +501,7 @@ bool rtklib_solver::get_PVT(const std::map& gnss_observables_ unsigned int index_aux = 0; for (unsigned int i = 0; i < MAXSAT; i++) { - if (rtk_.ssat[i].vsat[0] == 1) + if (rtk_.ssat[i].vs == 1) { azel[2 * index_aux] = rtk_.ssat[i].azel[0]; azel[2 * index_aux + 1] = rtk_.ssat[i].azel[1];