NR_UE: increase the accuracy of the filtered peak position value

This commit is contained in:
Thomas Schlichter
2022-11-03 09:42:57 +01:00
parent 39fe985681
commit c5e68e146c
2 changed files with 5 additions and 5 deletions
@@ -75,14 +75,14 @@ void nr_adjust_synch_ue(NR_DL_FRAME_PARMS *frame_parms,
// filter position to reduce jitter
if (clear == 1)
ue->max_pos_fil = max_pos;
ue->max_pos_fil = max_pos << 15;
else
ue->max_pos_fil = ((ue->max_pos_fil * coef) + (max_pos * ncoef)) >> 15;
ue->max_pos_fil = ((ue->max_pos_fil * coef) >> 15) + (max_pos * ncoef);
// do not filter to have proactive timing adjustment
//ue->max_pos_fil = max_pos;
//ue->max_pos_fil = max_pos << 15;
int diff = ue->max_pos_fil - sync_pos;
int diff = (ue->max_pos_fil >> 15) - sync_pos;
if (frame_parms->freq_range==nr_FR2)
sync_offset = 2;