diff --git a/src/algorithms/PVT/libs/rtklib_solver.cc b/src/algorithms/PVT/libs/rtklib_solver.cc index 5044f0654..604ee17c2 100644 --- a/src/algorithms/PVT/libs/rtklib_solver.cc +++ b/src/algorithms/PVT/libs/rtklib_solver.cc @@ -443,8 +443,8 @@ bool Rtklib_Solver::get_PVT(const std::map &gnss_observables_ int glo_valid_obs = 0; // GLONASS L1/L2 valid observations counter std::array obs_data{}; - std::vector eph_data(MAXOBS); - std::vector geph_data(MAXOBS); + std::array eph_data{}; + std::array geph_data{}; // Workaround for NAV/CNAV clash problem bool gps_dual_band = false; @@ -827,7 +827,6 @@ bool Rtklib_Solver::get_PVT(const std::map &gnss_observables_ if ((valid_obs + glo_valid_obs) > 3) { int result = 0; - int sat = 0; nav_t nav_data{}; nav_data.eph = eph_data.data(); nav_data.geph = geph_data.data();