mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-30 23:03:05 +00:00 
			
		
		
		
	Fix bug in Pfa assignation in GpsL1CaPcpsAcquisition
This commit is contained in:
		| @@ -136,11 +136,10 @@ void GpsL1CaPcpsAcquisition::set_channel(unsigned int channel) | ||||
|  | ||||
| void GpsL1CaPcpsAcquisition::set_threshold(float threshold) | ||||
| { | ||||
|     float pfa = configuration_->property(role_ + boost::lexical_cast<std::string>(channel_) + ".pfa", 0.0); | ||||
|     float pfa = configuration_->property(role_ + ".pfa", 0.0); | ||||
|  | ||||
|     if(pfa == 0.0) | ||||
|         { | ||||
|             pfa = configuration_->property(role_ + ".pfa", 0.0); | ||||
|             threshold_ = threshold; | ||||
|         } | ||||
|     else | ||||
| @@ -248,7 +247,6 @@ void GpsL1CaPcpsAcquisition::set_local_code() | ||||
|                     sizeof(gr_complex)*code_length_); | ||||
|         } | ||||
|  | ||||
|  | ||||
|     if (item_type_.compare("cshort") == 0) | ||||
|         { | ||||
|             acquisition_sc_->set_local_code(code_); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Luis Esteve
					Luis Esteve