From 45e1fa3ade142ca58decfc8d2e30cf8e0a96a42d Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 6 Sep 2022 12:03:17 +0200 Subject: [PATCH] Allow for multi-system configurations containing Galileo E6 --- src/core/receiver/gnss_flowgraph.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/receiver/gnss_flowgraph.cc b/src/core/receiver/gnss_flowgraph.cc index eaf193c76..d5505b4f9 100644 --- a/src/core/receiver/gnss_flowgraph.cc +++ b/src/core/receiver/gnss_flowgraph.cc @@ -814,8 +814,12 @@ int GNSSFlowgraph::connect_galileo_tow_map() { for (int i = 0; i < channels_count_; i++) { - top_block_->msg_connect(channels_.at(i)->get_right_block(), pmt::mp("TOW_from_TLM"), galileo_tow_map_, pmt::mp("TOW_from_TLM")); - top_block_->msg_connect(galileo_tow_map_, pmt::mp("TOW_to_TLM"), channels_.at(i)->get_right_block(), pmt::mp("TOW_to_TLM")); + std::string sig = channels_.at(i)->get_signal().get_signal_str(); + if (sig == "1B" || sig == "E6" || sig == "5X" || sig == "7X") + { + top_block_->msg_connect(channels_.at(i)->get_right_block(), pmt::mp("TOW_from_TLM"), galileo_tow_map_, pmt::mp("TOW_from_TLM")); + top_block_->msg_connect(galileo_tow_map_, pmt::mp("TOW_to_TLM"), channels_.at(i)->get_right_block(), pmt::mp("TOW_to_TLM")); + } } } catch (const std::exception& e)