mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-06 07:20:34 +00:00
Added user_clk_drift_ppm to monitor_pvt
This commit is contained in:
parent
828d3cd525
commit
2a57b6e8d5
@ -38,4 +38,6 @@ double gdop = 25; // Geometric Dilution of Precision
|
||||
double pdop = 26; // Position (3D) Dilution of Precision
|
||||
double hdop = 27; // Horizontal Dilution of Precision
|
||||
double vdop = 28; // Vertical Dilution of Precision
|
||||
|
||||
double user_clk_drift_ppm = 29; // User clock drift [ppm]
|
||||
}
|
||||
|
@ -89,6 +89,9 @@ public:
|
||||
double hdop;
|
||||
double vdop;
|
||||
|
||||
// User clock drift [ppm]
|
||||
double user_clk_drift_ppm;
|
||||
|
||||
/*!
|
||||
* \brief This member function serializes and restores
|
||||
* Monitor_Pvt objects from a byte stream.
|
||||
@ -134,6 +137,8 @@ public:
|
||||
ar& BOOST_SERIALIZATION_NVP(pdop);
|
||||
ar& BOOST_SERIALIZATION_NVP(hdop);
|
||||
ar& BOOST_SERIALIZATION_NVP(vdop);
|
||||
|
||||
ar& BOOST_SERIALIZATION_NVP(user_clk_drift_ppm);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
this->set_clock_drift_ppm(clock_drift_ppm);
|
||||
// User clock drift [ppm]
|
||||
monitor_pvt.user_clk_drift_ppm = clock_drift_ppm;
|
||||
|
||||
// ######## LOG FILE #########
|
||||
if (d_flag_dump_enabled == true)
|
||||
|
@ -116,6 +116,7 @@ public:
|
||||
monitor_.set_pdop(monitor->pdop);
|
||||
monitor_.set_hdop(monitor->hdop);
|
||||
monitor_.set_vdop(monitor->vdop);
|
||||
monitor_.set_user_clk_drift_ppm(monitor->user_clk_drift_ppm);
|
||||
|
||||
monitor_.SerializeToString(&data);
|
||||
return data;
|
||||
@ -153,6 +154,7 @@ public:
|
||||
monitor.pdop = mon.pdop();
|
||||
monitor.hdop = mon.hdop();
|
||||
monitor.vdop = mon.vdop();
|
||||
monitor.user_clk_drift_ppm = mon.user_clk_drift_ppm();
|
||||
|
||||
return monitor;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user