diff --git a/srslte/lib/sync/src/pss.c b/srslte/lib/sync/src/pss.c index 4de16a639..2917413be 100644 --- a/srslte/lib/sync/src/pss.c +++ b/srslte/lib/sync/src/pss.c @@ -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 diff --git a/srslte/lib/ue/src/ue_sync.c b/srslte/lib/ue/src/ue_sync.c index f08b75a29..2f2f98907 100644 --- a/srslte/lib/ue/src/ue_sync.c +++ b/srslte/lib/ue/src/ue_sync.c @@ -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.