@@ -888,17 +802,16 @@ int pss_search_time_nr(int **rxdata, ///rx data in time domain
//((short*)pss_corr_ue[pss_index])[2*n+1] += ((short*) &result)[1]; /* imaginary part */
//((short*)&synchro_out)[0] += ((int*) &result)[0]; /* real part */
//((short*)&synchro_out)[1] += ((int*) &result)[1]; /* imaginary part */
}
}
/* calculate the absolute value of sync_corr[n] */
avg[pss_index]+=pss_corr_ue[pss_index][n];
if(pss_corr_ue[pss_index][n]>peak_value){
peak_value=pss_corr_ue[pss_index][n];
peak_position=n;
pss_source=pss_index;
#ifdef DEBUG_PSS_NR
printf("pss_index %d: n %6u peak_value %15llu\n",pss_index,n,(unsignedlonglong)pss_corr_ue[pss_index][n]);
#endif
...
...
@@ -906,33 +819,28 @@ int pss_search_time_nr(int **rxdata, ///rx data in time domain
}
}
if(fo_flag){
if(fo_flag){
// fractional frequency offset computation according to Cross-correlation Synchronization Algorithm Using PSS
// Shoujun Huang, Yongtao Su, Ying He and Shan Tang, "Joint time and frequency offset estimation in LTE downlink," 7th International Conference on Communications and Networking in China, 2012.
int64_tresult1,result2;
// Computing cross-correlation at peak on half the symbol size for first half of data