mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	Merge branch 'next' of https://github.com/gnss-sdr/gnss-sdr into fpga_signal_sources
This commit is contained in:
		| @@ -125,13 +125,7 @@ void GNSSFlowgraph::init() | ||||
|     sources_count_ = configuration_->property("GNSS-SDR.num_sources", sources_count_deprecated); | ||||
|  | ||||
|     // Avoid segmentation fault caused by wrong configuration | ||||
|     auto check_not_nullptr = block_factory->GetSignalSource(configuration_.get(), queue_.get(), 0); | ||||
|     if (!check_not_nullptr) | ||||
|         { | ||||
|             std::cout << "GNSS-SDR program ended.\n"; | ||||
|             exit(1); | ||||
|         } | ||||
|     if (sources_count_ == 2 && check_not_nullptr->implementation() == "Multichannel_File_Signal_Source") | ||||
|     if (sources_count_ == 2 && configuration_->property("SignalSource.implementation", std::string("")) == "Multichannel_File_Signal_Source") | ||||
|         { | ||||
|             std::cout << " * Please set GNSS-SDR.num_sources=1 in your configuration file\n"; | ||||
|             std::cout << "   if you are using the Multichannel_File_Signal_Source implementation.\n"; | ||||
| @@ -143,7 +137,13 @@ void GNSSFlowgraph::init() | ||||
|     for (int i = 0; i < sources_count_; i++) | ||||
|         { | ||||
|             DLOG(INFO) << "Creating source " << i; | ||||
|             sig_source_.push_back(block_factory->GetSignalSource(configuration_.get(), queue_.get(), i)); | ||||
|             auto check_not_nullptr = block_factory->GetSignalSource(configuration_.get(), queue_.get(), i); | ||||
|             if (!check_not_nullptr) | ||||
|                 { | ||||
|                     std::cout << "GNSS-SDR program ended.\n"; | ||||
|                     exit(1); | ||||
|                 } | ||||
|             sig_source_.push_back(std::move(check_not_nullptr)); | ||||
|             if (enable_fpga_offloading_ == false) | ||||
|                 { | ||||
|                     auto& src = sig_source_.back(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Marc Majoral
					Marc Majoral