mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-11-15 14:25:00 +00:00
mod: clock rate is clock drift
This commit is contained in:
parent
60395e54a8
commit
0b34880fc6
@ -257,7 +257,7 @@ bool Rtklib_Solver::save_matfile() const
|
|||||||
auto cov_zx = std::vector<double>(num_epoch);
|
auto cov_zx = std::vector<double>(num_epoch);
|
||||||
|
|
||||||
auto clk_bias = std::vector<double>(num_epoch);
|
auto clk_bias = std::vector<double>(num_epoch);
|
||||||
auto clk_rate = std::vector<double>(num_epoch);
|
auto clk_drift = std::vector<double>(num_epoch);
|
||||||
auto sat_posX_m = std::vector<std::vector<double>>(5, std::vector<double>(num_epoch));
|
auto sat_posX_m = std::vector<std::vector<double>>(5, std::vector<double>(num_epoch));
|
||||||
auto sat_posY_m = std::vector<std::vector<double>>(5, std::vector<double>(num_epoch));
|
auto sat_posY_m = std::vector<std::vector<double>>(5, std::vector<double>(num_epoch));
|
||||||
auto sat_posZ_m = std::vector<std::vector<double>>(5, std::vector<double>(num_epoch));
|
auto sat_posZ_m = std::vector<std::vector<double>>(5, std::vector<double>(num_epoch));
|
||||||
@ -304,7 +304,7 @@ bool Rtklib_Solver::save_matfile() const
|
|||||||
dump_file.read(reinterpret_cast<char *>(&cov_zx[i]), sizeof(double));
|
dump_file.read(reinterpret_cast<char *>(&cov_zx[i]), sizeof(double));
|
||||||
|
|
||||||
dump_file.read(reinterpret_cast<char *>(&clk_bias[i]), sizeof(double));
|
dump_file.read(reinterpret_cast<char *>(&clk_bias[i]), sizeof(double));
|
||||||
dump_file.read(reinterpret_cast<char *>(&clk_rate[i]), sizeof(double));
|
dump_file.read(reinterpret_cast<char *>(&clk_drift[i]), sizeof(double));
|
||||||
for (uint32_t chan = 0; chan < 5; chan++)
|
for (uint32_t chan = 0; chan < 5; chan++)
|
||||||
{
|
{
|
||||||
dump_file.read(reinterpret_cast<char *>(&sat_posX_m[chan][i]), sizeof(double));
|
dump_file.read(reinterpret_cast<char *>(&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_VarWrite(matfp, matvar, MAT_COMPRESSION_ZLIB); // or MAT_COMPRESSION_NONE
|
||||||
Mat_VarFree(matvar);
|
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_VarWrite(matfp, matvar, MAT_COMPRESSION_ZLIB); // or MAT_COMPRESSION_NONE
|
||||||
Mat_VarFree(matvar);
|
Mat_VarFree(matvar);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user