Commit 6103d9ec authored by Haruki NAOI's avatar Haruki NAOI Committed by shono.takafumi

Fix: calculate signal_power and interference_power per symbol from DMRS.

parent 76998f7d
......@@ -1081,7 +1081,10 @@ void rx_ulsch(PHY_VARS_eNB *eNB,
symbol_offset = frame_parms->N_RB_UL*12*((3 - frame_parms->Ncp)+(7-frame_parms->Ncp));
pusch_vars->ulsch_interference_power[i] += interference_power(&pusch_vars->drs_ch_estimates[i][symbol_offset],ulsch[UE_id]->harq_processes[harq_pid]->nb_rb*12);
pusch_vars->ulsch_power[i] += signal_power(&pusch_vars->drs_ch_estimates[i][symbol_offset],ulsch[UE_id]->harq_processes[harq_pid]->nb_rb*12);
//ave
pusch_vars->ulsch_interference_power[i] >>= 1;
pusch_vars->ulsch_power[i] >>= 1;
pusch_vars->ulsch_interference_power[i] = pusch_vars->ulsch_interference_power[i]/correction_factor;
pusch_vars->ulsch_power[i] = pusch_vars->ulsch_power[i]/correction_factor;
......
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