mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-11-17 07:14:55 +00:00
Merge branch 'iucgnaw-bugfix' into next
This commit is contained in:
commit
8c69bd9a63
@ -12,7 +12,7 @@
|
|||||||
;######### GLOBAL OPTIONS ##################
|
;######### GLOBAL OPTIONS ##################
|
||||||
;internal_fs_sps: Internal signal sampling frequency after the signal conditioning stage [samples per second].
|
;internal_fs_sps: Internal signal sampling frequency after the signal conditioning stage [samples per second].
|
||||||
GNSS-SDR.internal_fs_sps=30000000
|
GNSS-SDR.internal_fs_sps=30000000
|
||||||
Receiver.sources_count=2
|
GNSS-SDR.num_sources=2
|
||||||
|
|
||||||
;######### CONTROL_THREAD CONFIG ############
|
;######### CONTROL_THREAD CONFIG ############
|
||||||
ControlThread.wait_for_flowgraph=false
|
ControlThread.wait_for_flowgraph=false
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
|
|
||||||
;######### GLOBAL OPTIONS ##################
|
;######### GLOBAL OPTIONS ##################
|
||||||
GNSS-SDR.internal_fs_sps=6625000
|
GNSS-SDR.internal_fs_sps=6625000
|
||||||
Receiver.sources_count=2
|
GNSS-SDR.num_sources=2
|
||||||
|
|
||||||
;######### SIGNAL_SOURCE CONFIG ############
|
;######### SIGNAL_SOURCE CONFIG ############
|
||||||
SignalSource0.implementation=File_Signal_Source
|
SignalSource0.implementation=File_Signal_Source
|
||||||
SignalSource0.filename=/archive/NT1065_L1_20160923_fs6625e6_if60e3_schar.bin ; <- PUT YOUR FILE HERE
|
SignalSource0.filename=../data/NT1065_L1_20160923_fs6625e6_if60e3_schar.bin ; <- PUT YOUR FILE HERE
|
||||||
SignalSource0.item_type=ibyte
|
SignalSource0.item_type=ibyte
|
||||||
SignalSource0.sampling_frequency=6625000
|
SignalSource0.sampling_frequency=6625000
|
||||||
SignalSource0.samples=0
|
SignalSource0.samples=0
|
||||||
@ -19,7 +19,7 @@ SignalSource0.dump=false;
|
|||||||
SignalSource0.dump_filename=/archive/signal_glonass.bin
|
SignalSource0.dump_filename=/archive/signal_glonass.bin
|
||||||
|
|
||||||
SignalSource1.implementation=File_Signal_Source
|
SignalSource1.implementation=File_Signal_Source
|
||||||
SignalSource1.filename=/archive/NT1065_GLONASS_L1_20160923_fs6625e6_if0e3_schar.bin ; <- PUT YOUR FILE HERE
|
SignalSource1.filename=../data/NT1065_GLONASS_L1_20160923_fs6625e6_if0e3_schar.bin ; <- PUT YOUR FILE HERE
|
||||||
SignalSource1.item_type=ibyte
|
SignalSource1.item_type=ibyte
|
||||||
SignalSource1.sampling_frequency=6625000
|
SignalSource1.sampling_frequency=6625000
|
||||||
SignalSource1.samples=0
|
SignalSource1.samples=0
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
;######### GLOBAL OPTIONS ##################
|
;######### GLOBAL OPTIONS ##################
|
||||||
GNSS-SDR.internal_fs_sps=6625000
|
GNSS-SDR.internal_fs_sps=6625000
|
||||||
Receiver.sources_count=2
|
GNSS-SDR.num_sources=2
|
||||||
|
|
||||||
;######### SIGNAL_SOURCE CONFIG ############
|
;######### SIGNAL_SOURCE CONFIG ############
|
||||||
SignalSource0.implementation=File_Signal_Source
|
SignalSource0.implementation=File_Signal_Source
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
; This is a GNSS-SDR configuration file
|
GNSS-SDR.num_sources; This is a GNSS-SDR configuration file
|
||||||
; The configuration API is described at https://gnss-sdr.org/docs/sp-blocks/
|
; The configuration API is described at https://gnss-sdr.org/docs/sp-blocks/
|
||||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
; SPDX-FileCopyrightText: (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
; SPDX-FileCopyrightText: (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
;######### GLOBAL OPTIONS ##################
|
;######### GLOBAL OPTIONS ##################
|
||||||
GNSS-SDR.internal_fs_sps=6625000
|
GNSS-SDR.internal_fs_sps=6625000
|
||||||
Receiver.sources_count=2
|
GNSS-SDR.num_sources=2
|
||||||
|
|
||||||
;######### SIGNAL_SOURCE CONFIG ############
|
;######### SIGNAL_SOURCE CONFIG ############
|
||||||
SignalSource0.implementation=File_Signal_Source
|
SignalSource0.implementation=File_Signal_Source
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
;######### GLOBAL OPTIONS ##################
|
;######### GLOBAL OPTIONS ##################
|
||||||
GNSS-SDR.internal_fs_sps=6625000
|
GNSS-SDR.internal_fs_sps=6625000
|
||||||
Receiver.sources_count=2
|
GNSS-SDR.num_sources=2
|
||||||
|
|
||||||
;######### SIGNAL_SOURCE CONFIG ############
|
;######### SIGNAL_SOURCE CONFIG ############
|
||||||
SignalSource0.implementation=File_Signal_Source
|
SignalSource0.implementation=File_Signal_Source
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
;internal_fs_sps: Internal signal sampling frequency after the signal conditioning stage [samples per second].
|
;internal_fs_sps: Internal signal sampling frequency after the signal conditioning stage [samples per second].
|
||||||
GNSS-SDR.internal_fs_sps=4000000
|
GNSS-SDR.internal_fs_sps=4000000
|
||||||
|
|
||||||
Receiver.sources_count=2
|
GNSS-SDR.num_sources=2
|
||||||
|
|
||||||
SignalSource.enable_throttle_control=false
|
SignalSource.enable_throttle_control=false
|
||||||
SignalSource.repeat=false
|
SignalSource.repeat=false
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
[GNSS-SDR]
|
[GNSS-SDR]
|
||||||
|
|
||||||
Receiver.sources_count=2
|
GNSS-SDR.num_sources=2
|
||||||
|
|
||||||
;######### GLOBAL OPTIONS ##################
|
;######### GLOBAL OPTIONS ##################
|
||||||
;internal_fs_sps: Internal signal sampling frequency after the signal conditioning stage [samples per second].
|
;internal_fs_sps: Internal signal sampling frequency after the signal conditioning stage [samples per second].
|
||||||
|
@ -91,24 +91,23 @@ ControlThread::ControlThread()
|
|||||||
|
|
||||||
const std::string empty_implementation;
|
const std::string empty_implementation;
|
||||||
std::string src_impl = configuration_->property("SignalSource.implementation", empty_implementation);
|
std::string src_impl = configuration_->property("SignalSource.implementation", empty_implementation);
|
||||||
int src_count = configuration_->property("Receiver.sources_count", 1);
|
int src_count_deprecated = configuration_->property("Receiver.sources_count", 1);
|
||||||
if (src_impl.empty() && (src_count != 1))
|
int src_count = configuration_->property("GNSS-SDR.num_sources", src_count_deprecated);
|
||||||
|
if (src_impl.empty())
|
||||||
{
|
{
|
||||||
|
src_impl = std::string("");
|
||||||
int num_src = 0;
|
int num_src = 0;
|
||||||
for (int i = 0; i < src_count; i++)
|
for (auto i = 0; i < src_count; i++)
|
||||||
{
|
{
|
||||||
std::string src_impl_multiple = configuration_->property("SignalSource" + std::to_string(i) + ".implementation", empty_implementation);
|
auto src_impl_multiple = configuration_->property("SignalSource" + std::to_string(i) + ".implementation", empty_implementation);
|
||||||
if (!src_impl_multiple.empty())
|
num_src += !src_impl_multiple.empty();
|
||||||
{
|
|
||||||
num_src++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (num_src != src_count)
|
|
||||||
{
|
|
||||||
src_impl = std::string("");
|
|
||||||
}
|
}
|
||||||
|
conf_has_signal_sources_ = (num_src == src_count);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
conf_has_signal_sources_ = true;
|
||||||
}
|
}
|
||||||
conf_has_signal_sources_ = !src_impl.empty();
|
|
||||||
|
|
||||||
std::string pvt_impl = configuration_->property("PVT.implementation", empty_implementation);
|
std::string pvt_impl = configuration_->property("PVT.implementation", empty_implementation);
|
||||||
conf_has_pvt_ = !pvt_impl.empty();
|
conf_has_pvt_ = !pvt_impl.empty();
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include "file_configuration.h"
|
#include "file_configuration.h"
|
||||||
#include "gnss_sdr_make_unique.h"
|
#include "gnss_sdr_make_unique.h"
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
|
#include <iostream>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
|
||||||
@ -55,7 +56,7 @@ void FileConfiguration::init()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG(WARNING) << "Unable to open configuration file " << filename_;
|
std::cerr << "Unable to open configuration file " << filename_ << '\n';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,8 @@ void GNSSFlowgraph::init()
|
|||||||
channels_status_ = channel_status_msg_receiver_make();
|
channels_status_ = channel_status_msg_receiver_make();
|
||||||
|
|
||||||
// 1. read the number of RF front-ends available (one file_source per RF front-end)
|
// 1. read the number of RF front-ends available (one file_source per RF front-end)
|
||||||
sources_count_ = configuration_->property("Receiver.sources_count", 1);
|
int sources_count_deprecated = configuration_->property("Receiver.sources_count", 1);
|
||||||
|
sources_count_ = configuration_->property("GNSS-SDR.num_sources", sources_count_deprecated);
|
||||||
|
|
||||||
int signal_conditioner_ID = 0;
|
int signal_conditioner_ID = 0;
|
||||||
|
|
||||||
@ -112,7 +113,10 @@ void GNSSFlowgraph::init()
|
|||||||
{
|
{
|
||||||
auto& src = sig_source_.back();
|
auto& src = sig_source_.back();
|
||||||
auto RF_Channels = src->getRfChannels();
|
auto RF_Channels = src->getRfChannels();
|
||||||
std::cout << "RF Channels: " << RF_Channels << '\n';
|
if (sources_count_ == 1)
|
||||||
|
{
|
||||||
|
std::cout << "RF Channels: " << RF_Channels << '\n';
|
||||||
|
}
|
||||||
for (auto j = 0U; j < RF_Channels; ++j)
|
for (auto j = 0U; j < RF_Channels; ++j)
|
||||||
{
|
{
|
||||||
sig_conditioner_.push_back(block_factory->GetSignalConditioner(configuration_.get(), signal_conditioner_ID));
|
sig_conditioner_.push_back(block_factory->GetSignalConditioner(configuration_.get(), signal_conditioner_ID));
|
||||||
@ -120,6 +124,10 @@ void GNSSFlowgraph::init()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (sources_count_ != 1 && !enable_fpga_offloading_)
|
||||||
|
{
|
||||||
|
std::cout << "RF Channels: " << sources_count_ << '\n';
|
||||||
|
}
|
||||||
if (!sig_conditioner_.empty())
|
if (!sig_conditioner_.empty())
|
||||||
{
|
{
|
||||||
signal_conditioner_connected_ = std::vector<bool>(sig_conditioner_.size(), false);
|
signal_conditioner_connected_ = std::vector<bool>(sig_conditioner_.size(), false);
|
||||||
@ -522,7 +530,6 @@ int GNSSFlowgraph::disconnect_desktop_flowgraph()
|
|||||||
int GNSSFlowgraph::connect_fpga_flowgraph()
|
int GNSSFlowgraph::connect_fpga_flowgraph()
|
||||||
{
|
{
|
||||||
// Check that the Signal Source has been instantiated successfully
|
// Check that the Signal Source has been instantiated successfully
|
||||||
|
|
||||||
for (auto& src : sig_source_)
|
for (auto& src : sig_source_)
|
||||||
{
|
{
|
||||||
if (src == nullptr)
|
if (src == nullptr)
|
||||||
@ -541,7 +548,6 @@ int GNSSFlowgraph::connect_fpga_flowgraph()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Connect blocks to the top_block
|
// Connect blocks to the top_block
|
||||||
|
|
||||||
if (connect_channels() != 0)
|
if (connect_channels() != 0)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
@ -560,7 +566,6 @@ int GNSSFlowgraph::connect_fpga_flowgraph()
|
|||||||
DLOG(INFO) << "Blocks connected internally to the top_block";
|
DLOG(INFO) << "Blocks connected internally to the top_block";
|
||||||
|
|
||||||
// Connect the counter
|
// Connect the counter
|
||||||
|
|
||||||
if (connect_fpga_sample_counter() != 0)
|
if (connect_fpga_sample_counter() != 0)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user