1;///This flag used to be static. With multiple gNBs this does no longer work, hence we put it in the structure. However it has to be initialized with 1, which is performed here.
gNB->first_run_I0_measurements=1;///This flag used to be static. With multiple gNBs this does no longer work, hence we put it in the structure. However it has to be initialized with 1, which is performed here.
rxF_ext=(int16_t*)&rxdataF_ext[aarx][symbol*nb_re_pusch];// [hna] rxdataF_ext isn't contiguous in order to solve an alignment problem ib llr computation in case of mod_order = 4, 6
ul_ch0=&ul_ch_estimates[aarx][(2*(frame_parms->ofdm_symbol_size))];// DMRS REs are only in symbol 2 (to be updated from config)
ul_ch0=&ul_ch_estimates[aarx][dmrs_symbol*frame_parms->ofdm_symbol_size];// update channel estimates if new dmrs symbol are available
LOG_D(PHY,"Scaling PUSCH Chest in OFDM symbol %d by %d, pilots %d nb_rb %d NCP %d symbol %d\n",symbol,ch_amp,pilots,nb_rb,frame_parms->Ncp,symbol);
LOG_D(PHY,"Scaling PUSCH Chest in OFDM symbol %d by %d, pilots %d nb_rb %d NCP %d symbol %d\n",symbol,ch_amp,is_dmrs_symbol,nb_rb,frame_parms->Ncp,symbol);
// printf("Scaling PUSCH Chest in OFDM symbol %d by %d\n",symbol_mod,ch_amp);