From a5af6ea88931416080d0253f46199466a8d174cc Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 13 Apr 2014 00:32:16 +0200 Subject: [PATCH] Cleaning flowgraph --- src/core/receiver/gnss_flowgraph.cc | 49 ----------------------------- src/core/receiver/gnss_flowgraph.h | 22 +++---------- 2 files changed, 4 insertions(+), 67 deletions(-) diff --git a/src/core/receiver/gnss_flowgraph.cc b/src/core/receiver/gnss_flowgraph.cc index 41c0e5315..4f6d2625f 100644 --- a/src/core/receiver/gnss_flowgraph.cc +++ b/src/core/receiver/gnss_flowgraph.cc @@ -442,55 +442,6 @@ void GNSSFlowgraph::set_configuration(std::shared_ptr co } -/* -std::shared_ptr GNSSFlowgraph::signal_source() -{ - auto sig_source_ = std::move(blocks_->at(0)); - return std::move(sig_source_); -} - - - -std::shared_ptr GNSSFlowgraph::signal_conditioner() -{ - auto sig_conditioner_ = std::move(blocks_->at(1)); - return std::move(sig_conditioner_); -} - - - -std::shared_ptr GNSSFlowgraph::channel(unsigned int index) -{ - auto chan_ = std::move(blocks_->at(index + 5)); - std::shared_ptr chan = std::dynamic_pointer_cast(chan_); - return chan; -} - - - -std::shared_ptr GNSSFlowgraph::observables() -{ - observables_ = std::move(blocks_->at(2)); - return std::move(observables_); -} - - - -std::shared_ptr GNSSFlowgraph::pvt() -{ - pvt_ = std::move(blocks_->at(3)); - return std::move(pvt_); -} - - - -std::shared_ptr GNSSFlowgraph::output_filter() -{ - auto output_ = std::move(blocks_->at(4)); - return std::move(output_); -} -*/ - void GNSSFlowgraph::init() { diff --git a/src/core/receiver/gnss_flowgraph.h b/src/core/receiver/gnss_flowgraph.h index 6f5818072..cf6b91bd7 100644 --- a/src/core/receiver/gnss_flowgraph.h +++ b/src/core/receiver/gnss_flowgraph.h @@ -93,20 +93,6 @@ public: void set_configuration(std::shared_ptr configuration); - /*std::shared_ptr signal_source(); - std::shared_ptr signal_conditioner(); - std::shared_ptr channel(unsigned int index); - std::shared_ptr observables(); - std::shared_ptr pvt(); - std::shared_ptr output_filter();*/ - - std::shared_ptr sig_source_; - std::shared_ptr sig_conditioner_; - std::shared_ptr observables_; - std::shared_ptr pvt_; - std::shared_ptr output_filter_; - std::vector> channels_; - unsigned int applied_actions() { return applied_actions_; @@ -122,11 +108,11 @@ public: private: void init(); - /*! + /* * \brief Populates the SV PRN list available for acquisition and tracking */ void set_signals_list(); - /*! + /* * \brief Initializes the channels state (start acquisition or keep standby) using the configuration parameters (number of channels and max channels in acquisition) */ void set_channels_state(); @@ -140,12 +126,12 @@ private: std::shared_ptr configuration_; std::shared_ptr block_factory_; std::shared_ptr>> blocks_ = std::make_shared>>(); - /* std::shared_ptr sig_source_; + std::shared_ptr sig_source_; std::shared_ptr sig_conditioner_; std::shared_ptr observables_; std::shared_ptr pvt_; std::shared_ptr output_filter_; - std::vector> channels_; */ + std::vector> channels_; gr::top_block_sptr top_block_; boost::shared_ptr queue_; std::list available_GNSS_signals_;