mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-10-13 19:21:50 +00:00
Make the f_error CSV dump opt-in via Tracking_<sig>.f_error_dump
Dll_Pll_Conf::f_error_dump_filename has a non-empty default, so the frequency-error-reduction scan's per-bin CSV dump was effectively always on with no clean way to disable it. Add a new f_error_dump boolean (default false), matching the existing dump/Tracking_<sig>.dump convention, and gate the dump call on it.
This commit is contained in:
@@ -2292,7 +2292,7 @@ void dll_pll_veml_tracking::run_f_error_scan_step()
|
||||
const auto rank_it = std::find(bins_by_doppler.begin(), bins_by_doppler.end(), best_bin);
|
||||
const auto best_bin_doppler_rank = static_cast<uint32_t>(std::distance(bins_by_doppler.begin(), rank_it));
|
||||
|
||||
if (!d_trk_parameters.f_error_dump_filename.empty())
|
||||
if (d_trk_parameters.f_error_dump && !d_trk_parameters.f_error_dump_filename.empty())
|
||||
{
|
||||
dump_f_error_csv(d_trk_parameters.f_error_dump_filename, g_f_error_scan_id.fetch_add(1),
|
||||
d_acquisition_gnss_synchro->PRN, d_trk_parameters.system, d_channel, f_error_cn0_dB_hz, d_carrier_doppler_hz,
|
||||
|
||||
@@ -60,6 +60,7 @@ void Dll_Pll_Conf::SetFromConfiguration(const ConfigurationInterface *configurat
|
||||
high_dyn = configuration->property(role + ".high_dyn", high_dyn);
|
||||
dump = configuration->property(role + ".dump", dump);
|
||||
dump_filename = configuration->property(role + ".dump_filename", dump_filename);
|
||||
f_error_dump = configuration->property(role + ".f_error_dump", f_error_dump);
|
||||
f_error_dump_filename = configuration->property(role + ".f_error_dump_filename", f_error_dump_filename);
|
||||
dump_mat = configuration->property(role + ".dump_mat", dump_mat);
|
||||
pll_bw_hz = configuration->property(role + ".pll_bw_hz", pll_bw_hz);
|
||||
|
||||
@@ -92,6 +92,7 @@ public:
|
||||
bool high_dyn{false};
|
||||
bool dump{false};
|
||||
bool dump_mat{true};
|
||||
bool f_error_dump{false};
|
||||
bool tow_to_trk{false};
|
||||
bool bs_use_phase_dot_detector{true};
|
||||
// BeiDou B1C-specific options.
|
||||
|
||||
Reference in New Issue
Block a user