Not correcting CFO in non-sync subframes

master
ismagom 9 years ago
parent a625f30643
commit c137091dc3

@ -85,7 +85,7 @@ void srslte_cfo_correct(srslte_cfo_t *h, cf_t *input, cf_t *output, float freq)
if (fabs(h->last_freq - freq) > h->tol) {
h->last_freq = freq;
srslte_cexptab_gen(&h->tab, h->cur_cexp, h->last_freq, h->nsamples);
DEBUG("CFO generating new table for frequency %.4f\n", freq);
DEBUG("CFO generating new table for frequency %.4fe-6\n", freq*1e6);
}
srslte_vec_prod_ccc(h->cur_cexp, input, output, h->nsamples);
}

@ -418,7 +418,7 @@ srslte_sync_find_ret_t srslte_sync_find(srslte_sync_t *q, cf_t *input, uint32_t
q->mean_cfo = SRSLTE_VEC_EMA(cfo, q->mean_cfo, q->cfo_ema_alpha);
/* Correct CFO with the averaged CFO estimation */
srslte_cfo_correct(&q->cfocorr, input, input, -q->mean_cfo / q->fft_size);
srslte_cfo_correct(&q->cfocorr, input, input, -q->mean_cfo / q->fft_size);
}
/* If integer CFO is enabled, find max PSS correlation for shifted +1/0/-1 integer versions */

@ -607,7 +607,7 @@ int srslte_ue_sync_zerocopy(srslte_ue_sync_t *q, cf_t *input_buffer) {
srslte_cfo_correct(&q->sfind.cfocorr,
input_buffer,
input_buffer,
-srslte_sync_get_cfo(&q->sfind) / q->fft_size);
-srslte_sync_get_cfo(&q->strack) / q->fft_size);
}
}

Loading…
Cancel
Save