@@ -884,20 +886,51 @@ int pss_search_time_nr(int **rxdata, ///rx data in time domain
peak_value=pss_corr_ue[pss_index][n];
peak_position=n;
pss_source=pss_index;
ffo_est=angle64(result)/M_PI;
//#ifdef DEBUG_PSS_NR
printf("pss_index %d: n %6d peak_value %15llu ffo %lf\n",pss_index,n,(unsignedlonglong)pss_corr_ue[pss_index][n],ffo_est);
//#endif
#ifdef DEBUG_PSS_NR
printf("pss_index %d: n %6d peak_value %15llu\n",pss_index,n,(unsignedlonglong)pss_corr_ue[pss_index][n]);
#endif
}
}
}
// fractional frequency offser 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.
// Computing cross-correlation at peak on half the symbol size for first half of data