mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-30 23:03:05 +00:00 
			
		
		
		
	Merge branch 'bugfix' of https://github.com/iucgnaw/gnss-sdr into iucgnaw-bugfix
This commit is contained in:
		| @@ -92,7 +92,13 @@ 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 = configuration_->property("Receiver.sources_count", 1); | ||||||
|     if (src_impl.empty() && (src_count != 1)) |     if (src_impl.empty()) | ||||||
|  |         { | ||||||
|  |             if ((src_count == 1)) | ||||||
|  |                 { | ||||||
|  |                     conf_has_signal_sources_ = false; | ||||||
|  |                 } | ||||||
|  |             else | ||||||
|                 { |                 { | ||||||
|                     int num_src = 0; |                     int num_src = 0; | ||||||
|                     for (int i = 0; i < src_count; i++) |                     for (int i = 0; i < src_count; i++) | ||||||
| @@ -103,12 +109,20 @@ ControlThread::ControlThread() | |||||||
|                                     num_src++; |                                     num_src++; | ||||||
|                                 } |                                 } | ||||||
|                         } |                         } | ||||||
|             if (num_src != src_count) |                     if (num_src == src_count) | ||||||
|                         { |                         { | ||||||
|                     src_impl = std::string(""); |                             conf_has_signal_sources_ = true; | ||||||
|  |                         } | ||||||
|  |                     else | ||||||
|  |                         { | ||||||
|  |                             conf_has_signal_sources_ = false; | ||||||
|                         } |                         } | ||||||
|                 } |                 } | ||||||
|     conf_has_signal_sources_ = !src_impl.empty(); |         } | ||||||
|  |     else | ||||||
|  |         { | ||||||
|  |             conf_has_signal_sources_ = true; | ||||||
|  |         } | ||||||
|  |  | ||||||
|     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(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez