mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Adding timestamp_source command line switch to change the timestamp file from command line
This commit is contained in:
parent
672edceec3
commit
bf7c52d510
@ -33,6 +33,9 @@ DEFINE_string(s, "-",
|
|||||||
DEFINE_string(signal_source, "-",
|
DEFINE_string(signal_source, "-",
|
||||||
"If defined, path to the file containing the signal samples (overrides the configuration file).");
|
"If defined, path to the file containing the signal samples (overrides the configuration file).");
|
||||||
|
|
||||||
|
DEFINE_string(timestamp_source, "-",
|
||||||
|
"If defined, path to the file containing the signal timestamp data (overrides the configuration file).");
|
||||||
|
|
||||||
DEFINE_bool(rf_shutdown, true, "If set to false, AD9361 RF channels are not shut down when exiting the program. Useful to leave the AD9361 configured and running.");
|
DEFINE_bool(rf_shutdown, true, "If set to false, AD9361 RF channels are not shut down when exiting the program. Useful to leave the AD9361 configured and running.");
|
||||||
|
|
||||||
DEFINE_int32(doppler_max, 0, "If defined, sets the maximum Doppler value in the search grid, in Hz (overrides the configuration file).");
|
DEFINE_int32(doppler_max, 0, "If defined, sets the maximum Doppler value in the search grid, in Hz (overrides the configuration file).");
|
||||||
|
@ -37,6 +37,7 @@ DECLARE_string(log_dir); //!< Path to the folder in which logging will be store
|
|||||||
// Declare flags for signal sources
|
// Declare flags for signal sources
|
||||||
DECLARE_string(s); //!< Path to the file containing the signal samples.
|
DECLARE_string(s); //!< Path to the file containing the signal samples.
|
||||||
DECLARE_string(signal_source); //!< Path to the file containing the signal samples.
|
DECLARE_string(signal_source); //!< Path to the file containing the signal samples.
|
||||||
|
DECLARE_string(timestamp_source); //!< Path to the file containing the signal samples.
|
||||||
DECLARE_bool(rf_shutdown); //!< Shutdown RF when program exits.
|
DECLARE_bool(rf_shutdown); //!< Shutdown RF when program exits.
|
||||||
|
|
||||||
// Declare flags for acquisition blocks
|
// Declare flags for acquisition blocks
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
* -----------------------------------------------------------------------------
|
* -----------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include "file_timestamp_signal_source.h"
|
#include "file_timestamp_signal_source.h"
|
||||||
|
#include "gnss_sdr_flags.h"
|
||||||
#include "gnss_sdr_string_literals.h"
|
#include "gnss_sdr_string_literals.h"
|
||||||
#include "gnss_sdr_timestamp.h"
|
#include "gnss_sdr_timestamp.h"
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
@ -33,6 +34,12 @@ FileTimestampSignalSource::FileTimestampSignalSource(const ConfigurationInterfac
|
|||||||
{
|
{
|
||||||
LOG(ERROR) << "This implementation only supports one output stream";
|
LOG(ERROR) << "This implementation only supports one output stream";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// override value with commandline flag, if present
|
||||||
|
if (FLAGS_timestamp_source != "-")
|
||||||
|
{
|
||||||
|
timestamp_file_ = FLAGS_timestamp_source;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user