|
|
@ -477,7 +477,7 @@ int srslte_prach_detect(srslte_prach_t *p,
|
|
|
|
uint32_t N_rb_ul = prach_get_rb_ul(p->N_ifft_ul);
|
|
|
|
uint32_t N_rb_ul = prach_get_rb_ul(p->N_ifft_ul);
|
|
|
|
uint32_t k_0 = freq_offset*N_RB_SC - N_rb_ul*N_RB_SC/2 + p->N_ifft_ul/2;
|
|
|
|
uint32_t k_0 = freq_offset*N_RB_SC - N_rb_ul*N_RB_SC/2 + p->N_ifft_ul/2;
|
|
|
|
uint32_t K = DELTA_F/DELTA_F_RA;
|
|
|
|
uint32_t K = DELTA_F/DELTA_F_RA;
|
|
|
|
uint32_t begin = PHI + (K*k_0) + (K/2);
|
|
|
|
uint32_t begin = PHI + (K*k_0) + (K/2) + 1;
|
|
|
|
|
|
|
|
|
|
|
|
for(int i=0;i<p->N_zc;i++){
|
|
|
|
for(int i=0;i<p->N_zc;i++){
|
|
|
|
p->prach_bins[i] = signal[begin+i];
|
|
|
|
p->prach_bins[i] = signal[begin+i];
|
|
|
|