printf("peak %d found at pss_index %d, n %6d, peak_value %15llu\n",n_peaks,pss_source[n_peaks],peak_position[n_peaks],(unsignedlonglong)pss_corr_ue[pss_source[n_peaks]][peak_position[n_peaks]]);
//#endif
peak_value=threshold;
found_peak=0;
n_peaks++;
//if (n_peaks==L_max) break;
}
}
LOG_I(PHY,"[UE] nr_synchro_time: Sync source = %d, Peak found at pos %d, val = %llu (%d dB) avg %d dB\n",pss_source,peak_position,(unsignedlonglong)peak_value,dB_fixed64(peak_value),dB_fixed64(avg[pss_source]));
*eNB_id=pss_source[0];
if(peak_value<5*avg[pss_source])
return(-1);
//LOG_I(PHY,"[UE] nr_synchro_time: Sync source = %d, Peak found at pos %d, val = %llu (%d dB) avg %d dB\n", pss_source, peak_position, (unsigned long long)peak_value, dB_fixed64(peak_value),dB_fixed64(avg[pss_source]));
#ifdef DBG_PSS_NR
...
...
@@ -942,6 +907,6 @@ int pss_search_time_nr(int **rxdata, ///rx data in time domain