Commit 0532b39c authored by Marwan Hammouda's avatar Marwan Hammouda

Doppler compensation at Iniaitl sync only when doppler compensation enabled

parent f373a427
...@@ -199,6 +199,7 @@ int nr_pbch_detection(UE_nr_rxtx_proc_t * proc, PHY_VARS_NR_UE *ue, int pbch_ini ...@@ -199,6 +199,7 @@ int nr_pbch_detection(UE_nr_rxtx_proc_t * proc, PHY_VARS_NR_UE *ue, int pbch_ini
} }
extern int commonDoppler; extern int commonDoppler;
extern int fdopplerComp;
int nr_initial_sync(UE_nr_rxtx_proc_t *proc, int nr_initial_sync(UE_nr_rxtx_proc_t *proc,
PHY_VARS_NR_UE *ue, PHY_VARS_NR_UE *ue,
int n_frames, int sa) int n_frames, int sa)
...@@ -242,8 +243,11 @@ int nr_initial_sync(UE_nr_rxtx_proc_t *proc, ...@@ -242,8 +243,11 @@ int nr_initial_sync(UE_nr_rxtx_proc_t *proc,
// initial sync performed on two successive frames, if pbch passes on first frame, no need to process second frame // initial sync performed on two successive frames, if pbch passes on first frame, no need to process second frame
// only one frame is used for symulation tools // only one frame is used for symulation tools
for (frame_id = 0; frame_id < n_frames; frame_id++) { for (frame_id = 0; frame_id < n_frames; frame_id++) {
nr_apply_Doppler( &ue->common_vars.rxdata[0][frame_id*fp->samples_per_frame], fp->samples_per_frame, if (fdopplerComp == 1)
-commonDoppler, &SampIdxUERxInitSync, fp); {
nr_apply_Doppler( &ue->common_vars.rxdata[0][frame_id*fp->samples_per_frame], fp->samples_per_frame,
-commonDoppler, &SampIdxUERxInitSync, fp);
}
/* process pss search on received buffer */ /* process pss search on received buffer */
sync_pos = pss_synchro_nr(ue, frame_id, NO_RATE_CHANGE); sync_pos = pss_synchro_nr(ue, frame_id, NO_RATE_CHANGE);
if (sync_pos < fp->nb_prefix_samples) if (sync_pos < fp->nb_prefix_samples)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment