Update pathloss test for working with automatic propagation model setting
authorMarco Miozzo <marco.miozzo@cttc.es>
Thu, 15 Sep 2011 13:36:55 +0200
changeset 8235 3a2689468f7f
parent 8234 ee0d91b3de95
child 8236 5c8dc805e013
Update pathloss test for working with automatic propagation model setting
src/lte/test/lte-test-pathloss-model.cc
--- a/src/lte/test/lte-test-pathloss-model.cc	Thu Sep 15 13:36:02 2011 +0200
+++ b/src/lte/test/lte-test-pathloss-model.cc	Thu Sep 15 13:36:55 2011 +0200
@@ -458,6 +458,12 @@
   lena->EnableMacTraces ();
   lena->EnableRlcTraces ();
   lena->SetAttribute ("PropagationModel", StringValue ("ns3::BuildingsPropagationLossModel"));
+  // set frequency
+  // this should not be done, since it is charge the Helper of this task using the netdevice settings (earfc parameter)
+  double freq = 2.114e+09;
+  lena->SetPropagationModelAttribute ("Frequency", DoubleValue (freq));
+  lena->SetPropagationModelAttribute ("Lambda", DoubleValue (300000000.0 /freq));
+  
   // remove shadowing component
   lena->SetPropagationModelAttribute ("ShadowSigmaOutdoor", DoubleValue (0.0));
   lena->SetPropagationModelAttribute ("ShadowSigmaIndoor", DoubleValue (0.0));