From 0b34880fc6f79f0dfe0aa0a747e6b1d49ceba8f5 Mon Sep 17 00:00:00 2001 From: "M.A.Gomez" Date: Thu, 8 Dec 2022 19:02:28 +0000 Subject: [PATCH] mod: clock rate is clock drift --- src/algorithms/PVT/libs/rtklib_solver.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/algorithms/PVT/libs/rtklib_solver.cc b/src/algorithms/PVT/libs/rtklib_solver.cc index 023f4842f..481d11757 100755 --- a/src/algorithms/PVT/libs/rtklib_solver.cc +++ b/src/algorithms/PVT/libs/rtklib_solver.cc @@ -257,7 +257,7 @@ bool Rtklib_Solver::save_matfile() const auto cov_zx = std::vector(num_epoch); auto clk_bias = std::vector(num_epoch); - auto clk_rate = std::vector(num_epoch); + auto clk_drift = std::vector(num_epoch); auto sat_posX_m = std::vector>(5, std::vector(num_epoch)); auto sat_posY_m = std::vector>(5, std::vector(num_epoch)); auto sat_posZ_m = std::vector>(5, std::vector(num_epoch)); @@ -304,7 +304,7 @@ bool Rtklib_Solver::save_matfile() const dump_file.read(reinterpret_cast(&cov_zx[i]), sizeof(double)); dump_file.read(reinterpret_cast(&clk_bias[i]), sizeof(double)); - dump_file.read(reinterpret_cast(&clk_rate[i]), sizeof(double)); + dump_file.read(reinterpret_cast(&clk_drift[i]), sizeof(double)); for (uint32_t chan = 0; chan < 5; chan++) { dump_file.read(reinterpret_cast(&sat_posX_m[chan][i]), sizeof(double)); @@ -442,7 +442,7 @@ bool Rtklib_Solver::save_matfile() const Mat_VarWrite(matfp, matvar, MAT_COMPRESSION_ZLIB); // or MAT_COMPRESSION_NONE Mat_VarFree(matvar); - matvar = Mat_VarCreate("clk_rate_s", MAT_C_DOUBLE, MAT_T_DOUBLE, 2, dims.data(), clk_rate.data(), 0); + matvar = Mat_VarCreate("clk_drift", MAT_C_DOUBLE, MAT_T_DOUBLE, 2, dims.data(), clk_drift.data(), 0); Mat_VarWrite(matfp, matvar, MAT_COMPRESSION_ZLIB); // or MAT_COMPRESSION_NONE Mat_VarFree(matvar);