Bug-fix: missing conversion from PSD to linear power of RS in RSRP PHY traces evaluation
authorMarco Miozzo <marco.miozzo@cttc.es>
Mon, 08 Apr 2013 16:30:55 +0200
changeset 9686 1bc9e60169cc
parent 9685 e2d696385b5e
child 9687 a5f50a5bb6f6
Bug-fix: missing conversion from PSD to linear power of RS in RSRP PHY traces evaluation
src/lte/model/lte-ue-phy.cc
--- a/src/lte/model/lte-ue-phy.cc	Mon Apr 08 16:27:42 2013 +0200
+++ b/src/lte/model/lte-ue-phy.cc	Mon Apr 08 16:30:55 2013 +0200
@@ -465,7 +465,11 @@
       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;