mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-09-28 15:08:51 +00:00
fixed DMA input file configuration options
This commit is contained in:
parent
5b3e0f4b94
commit
0a14a1aa42
@ -337,8 +337,23 @@ Ad9361FpgaSignalSource::Ad9361FpgaSignalSource(ConfigurationInterface *configura
|
|||||||
{
|
{
|
||||||
enable_DMA_ = true;
|
enable_DMA_ = true;
|
||||||
std::string empty_string;
|
std::string empty_string;
|
||||||
filename_rx1 = configuration->property(role + ".filename_rx1", empty_string);
|
filename_rx1 = configuration->property(role + ".filename", empty_string);
|
||||||
filename_rx2 = configuration->property(role + ".filename_rx2", empty_string);
|
|
||||||
|
// override value with commandline flag, if present
|
||||||
|
if (FLAGS_signal_source != "-")
|
||||||
|
{
|
||||||
|
filename_rx1 = FLAGS_signal_source;
|
||||||
|
}
|
||||||
|
if (FLAGS_s != "-")
|
||||||
|
{
|
||||||
|
filename_rx1 = FLAGS_s;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (filename_rx1.empty())
|
||||||
|
{
|
||||||
|
filename_rx1 = configuration->property(role + ".filename0", empty_string);
|
||||||
|
filename_rx2 = configuration->property(role + ".filename1", empty_string);
|
||||||
|
}
|
||||||
int l1_band = configuration->property("Channels_1C.count", 0) +
|
int l1_band = configuration->property("Channels_1C.count", 0) +
|
||||||
configuration->property("Channels_1B.count", 0);
|
configuration->property("Channels_1B.count", 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user