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;
}
}
if(peak_value<5*avg[pss_source])
*eNB_id=pss_source[0];
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
#ifdef DBG_PSS_NR
...
@@ -907,6 +942,6 @@ int pss_search_time_nr(int **rxdata, ///rx data in time domain
...
@@ -907,6 +942,6 @@ int pss_search_time_nr(int **rxdata, ///rx data in time domain