1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00

Avoid storing GBs of data by default

This commit is contained in:
Carles Fernandez 2018-12-12 01:23:05 +01:00
parent bb137661bd
commit 7557c94208
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -87,6 +87,8 @@ DEFINE_int32(acq_test_iterations, 1, "Number of iterations (same signal, differe
DEFINE_bool(plot_acq_test, false, "Plots results with gnuplot, if available");
DEFINE_int32(acq_test_skiphead, 0, "Number of samples to skip in the input file");
DEFINE_bool(acq_test_dump, false, "Dump the results of an acquisition block into .mat files.");
// ######## GNURADIO BLOCK MESSAGE RECEVER #########
class AcqPerfTest_msg_rx;
@ -523,8 +525,15 @@ int AcquisitionPerformanceTest::configure_receiver(double cn0, float pfa, unsign
config->set_property("Acquisition.make_two_steps", "false");
}
if (FLAGS_acq_test_dump)
{
config->set_property("Acquisition.dump", "true");
}
else
{
config->set_property("Acquisition.dump", "false");
}
config->set_property("Acquisition.dump", "true");
std::string dump_file = path_str + std::string("/acquisition_") + std::to_string(cn0) + "_" + std::to_string(iter) + "_" + std::to_string(pfa);
config->set_property("Acquisition.dump_filename", dump_file);
config->set_property("Acquisition.dump_channel", std::to_string(dump_channel));