Udate default values of txMode gain to 1.0 (linear of 0 dB)
authorMarco Miozzo <marco.miozzo@cttc.es>
Mon, 23 Apr 2012 11:01:01 +0200
changeset 8724 b92bff65c4fd
parent 8723 c7372374fad8
child 8725 e8df5f68c35e
Udate default values of txMode gain to 1.0 (linear of 0 dB)
src/lte/model/lte-spectrum-phy.cc
--- a/src/lte/model/lte-spectrum-phy.cc	Mon Apr 23 11:00:17 2012 +0200
+++ b/src/lte/model/lte-spectrum-phy.cc	Mon Apr 23 11:01:01 2012 +0200
@@ -76,7 +76,7 @@
   m_interference = CreateObject<LteInterference> ();
   for (uint8_t i = 0; i < 7; i++)
     {
-      m_txModeGain.push_back (0.0);
+      m_txModeGain.push_back (1.0);
     }
 }
 
@@ -491,7 +491,7 @@
   expectedTbs_t::iterator itTb = m_expectedTbs.begin ();
   
   // apply transmission mode gain
-  NS_LOG_DEBUG (this << " txMode " << (uint16_t)m_txModeGain.size () << " gain " << m_txModeGain.at (m_transmissionMode));
+  NS_LOG_DEBUG (this << " txMode " << (uint16_t)m_transmissionMode << " gain " << m_txModeGain.at (m_transmissionMode));
   NS_ASSERT (m_transmissionMode < m_txModeGain.size ());
   m_sinrPerceived *= m_txModeGain.at (m_transmissionMode);
   
@@ -572,7 +572,7 @@
 void 
 LteSpectrumPhy::SetTxModeGain (uint8_t txMode, double gain)
 {
-  NS_LOG_FUNCTION (this << gain);
+  NS_LOG_FUNCTION (this << " txmode " << (uint16_t)txMode << " gain " << gain);
   // convert to linear
   gain = pow (10.0, (gain / 10.0));
   if (m_txModeGain.size () < txMode)