From 5e3ea98a771f0a46ff487bbfa616f2ed51e35b98 Mon Sep 17 00:00:00 2001 From: Marco Miozzo Date: Mon, 8 Apr 2013 16:30:55 +0200 Subject: [PATCH] Bug-fix: missing conversion from PSD to linear power of RS in RSRP PHY traces evaluation --- src/lte/model/lte-ue-phy.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lte/model/lte-ue-phy.cc b/src/lte/model/lte-ue-phy.cc index bd7c2cb85..6cc3f0289 100644 --- a/src/lte/model/lte-ue-phy.cc +++ b/src/lte/model/lte-ue-phy.cc @@ -465,7 +465,11 @@ LteUePhy::CreateDlCqiFeedbackMessage (const SpectrumValue& sinr) Values::const_iterator it; for (it = m_rsReceivedPower.ConstValuesBegin (); it != m_rsReceivedPower.ConstValuesEnd (); it++) { - sum += (*it); + // convert PSD [W/Hz] to linear power [W] for the single RE + // we consider only one RE for the RS since the channel is + // flat within the same RB + double powerTxW = ((*it) * 180000.0) / 12.0; + sum += powerTxW; rbNum++; } double rsrp = sum / (double)rbNum;