mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-30 23:03:05 +00:00 
			
		
		
		
	Merge pull request #308 from mmajoral/fix_fpga_cn0_and_tracking_lock_status
Fix fpga cn0 and tracking lock status
This commit is contained in:
		| @@ -600,11 +600,12 @@ bool dll_pll_veml_tracking_fpga::cn0_and_tracking_lock_status(double coh_integra | |||||||
|     if (d_cn0_estimation_counter < trk_parameters.cn0_samples) |     if (d_cn0_estimation_counter < trk_parameters.cn0_samples) | ||||||
|         { |         { | ||||||
|             // fill buffer with prompt correlator output values |             // fill buffer with prompt correlator output values | ||||||
|             d_Prompt_buffer[d_cn0_estimation_counter++] = d_P_accu; |             d_Prompt_buffer[d_cn0_estimation_counter] = d_P_accu; | ||||||
|  |             d_cn0_estimation_counter++; | ||||||
|             return true; |             return true; | ||||||
|         } |         } | ||||||
|     d_cn0_estimation_counter = 0; |     d_Prompt_buffer[d_cn0_estimation_counter % trk_parameters.cn0_samples] = d_P_accu; | ||||||
|     d_Prompt_buffer[d_cn0_estimation_counter++] = d_P_accu; |     d_cn0_estimation_counter++; | ||||||
|     // Code lock indicator |     // Code lock indicator | ||||||
|     float d_CN0_SNV_dB_Hz_raw = cn0_svn_estimator(d_Prompt_buffer.data(), trk_parameters.cn0_samples, static_cast<float>(coh_integration_time_s)); |     float d_CN0_SNV_dB_Hz_raw = cn0_svn_estimator(d_Prompt_buffer.data(), trk_parameters.cn0_samples, static_cast<float>(coh_integration_time_s)); | ||||||
|     d_CN0_SNV_dB_Hz = d_cn0_smoother.smooth(d_CN0_SNV_dB_Hz_raw); |     d_CN0_SNV_dB_Hz = d_cn0_smoother.smooth(d_CN0_SNV_dB_Hz_raw); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Javier Arribas
					Javier Arribas