Reduced PSS track threshold and removed averaging

This commit is contained in:
ismagom 2015-10-28 19:11:26 +01:00
parent 4e22f158e2
commit 7df667d3d0
2 changed files with 5 additions and 6 deletions

View file

@ -360,11 +360,8 @@ int srslte_pss_synch_find_pss(srslte_pss_synch_t *q, cf_t *input, float *corr_pe
*corr_peak_value = q->conv_output_avg[corr_peak_pos]/side_lobe_value;
if (*corr_peak_value < 2.0) {
DEBUG("pl_ub=%d, pl_lb=%d, sl_right: %d (%.2f), sl_left: %d (%.2f), PSR: %.2f/%.2f=%.2f\n", pl_ub, pl_lb,
sl_right, 1000000*q->conv_output_avg[sl_right],
sl_left, 1000000*q->conv_output_avg[sl_left],
1000000*q->conv_output_avg[corr_peak_pos], 1000000*side_lobe_value,*corr_peak_value
);
DEBUG("peak_pos=%2d, pl_ub=%2d, pl_lb=%2d, sl_right: %2d, sl_left: %2d, PSR: %.2f/%.2f=%.2f\n", corr_peak_pos, pl_ub, pl_lb,
sl_right,sl_left, q->conv_output_avg[corr_peak_pos], side_lobe_value,*corr_peak_value);
}
}
#else

View file

@ -178,7 +178,9 @@ int srslte_ue_sync_init(srslte_ue_sync_t *q,
srslte_sync_set_em_alpha(&q->sfind, 1);
q->nof_avg_find_frames = 1;
srslte_sync_set_threshold(&q->sfind, 4.0);
srslte_sync_set_threshold(&q->strack, 1.3);
srslte_sync_set_em_alpha(&q->strack, 1);
srslte_sync_set_threshold(&q->strack, 1.1);
/* Correct CFO in the find state but not in the track state, since is called only
* 1 every 5 subframes. Will do it in the srslte_ue_sync_get_buffer() function.