1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-08 16:30:35 +00:00

Added user_clk_drift_ppm to monitor_pvt

This commit is contained in:
Cillian O'Driscoll 2019-11-05 09:45:11 +00:00
parent 828d3cd525
commit 2a57b6e8d5
4 changed files with 11 additions and 0 deletions

View File

@ -38,4 +38,6 @@ double gdop = 25; // Geometric Dilution of Precision
double pdop = 26; // Position (3D) Dilution of Precision double pdop = 26; // Position (3D) Dilution of Precision
double hdop = 27; // Horizontal Dilution of Precision double hdop = 27; // Horizontal Dilution of Precision
double vdop = 28; // Vertical Dilution of Precision double vdop = 28; // Vertical Dilution of Precision
double user_clk_drift_ppm = 29; // User clock drift [ppm]
} }

View File

@ -89,6 +89,9 @@ public:
double hdop; double hdop;
double vdop; double vdop;
// User clock drift [ppm]
double user_clk_drift_ppm;
/*! /*!
* \brief This member function serializes and restores * \brief This member function serializes and restores
* Monitor_Pvt objects from a byte stream. * Monitor_Pvt objects from a byte stream.
@ -134,6 +137,8 @@ public:
ar& BOOST_SERIALIZATION_NVP(pdop); ar& BOOST_SERIALIZATION_NVP(pdop);
ar& BOOST_SERIALIZATION_NVP(hdop); ar& BOOST_SERIALIZATION_NVP(hdop);
ar& BOOST_SERIALIZATION_NVP(vdop); ar& BOOST_SERIALIZATION_NVP(vdop);
ar& BOOST_SERIALIZATION_NVP(user_clk_drift_ppm);
} }
}; };

View File

@ -1082,6 +1082,8 @@ bool Rtklib_Solver::get_PVT(const std::map<int, Gnss_Synchro> &gnss_observables_
double clock_drift_ppm = pvt_sol.dtr[5] / GPS_C_M_S * 1e6; double clock_drift_ppm = pvt_sol.dtr[5] / GPS_C_M_S * 1e6;
this->set_clock_drift_ppm(clock_drift_ppm); this->set_clock_drift_ppm(clock_drift_ppm);
// User clock drift [ppm]
monitor_pvt.user_clk_drift_ppm = clock_drift_ppm;
// ######## LOG FILE ######### // ######## LOG FILE #########
if (d_flag_dump_enabled == true) if (d_flag_dump_enabled == true)

View File

@ -116,6 +116,7 @@ public:
monitor_.set_pdop(monitor->pdop); monitor_.set_pdop(monitor->pdop);
monitor_.set_hdop(monitor->hdop); monitor_.set_hdop(monitor->hdop);
monitor_.set_vdop(monitor->vdop); monitor_.set_vdop(monitor->vdop);
monitor_.set_user_clk_drift_ppm(monitor->user_clk_drift_ppm);
monitor_.SerializeToString(&data); monitor_.SerializeToString(&data);
return data; return data;
@ -153,6 +154,7 @@ public:
monitor.pdop = mon.pdop(); monitor.pdop = mon.pdop();
monitor.hdop = mon.hdop(); monitor.hdop = mon.hdop();
monitor.vdop = mon.vdop(); monitor.vdop = mon.vdop();
monitor.user_clk_drift_ppm = mon.user_clk_drift_ppm();
return monitor; return monitor;
} }