more meaninfgul default parameters for the adhoc-aloha-ideal-phy-matrix-propagation-loss-model example
authorNicola Baldo <nicola@baldo.biz>
Sun, 21 Apr 2013 21:44:54 +0200
changeset 9712 11708f721400
parent 9711 7f4c6aa52b52
child 9713 863fb879a9d2
more meaninfgul default parameters for the adhoc-aloha-ideal-phy-matrix-propagation-loss-model example
src/spectrum/examples/adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc
--- a/src/spectrum/examples/adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc	Sat Apr 20 16:56:38 2013 +0200
+++ b/src/spectrum/examples/adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc	Sun Apr 21 21:44:54 2013 +0200
@@ -122,7 +122,7 @@
 int main (int argc, char** argv)
 {
   CommandLine cmd;
-  double lossDb = 150;
+  double lossDb = 130;
   double txPowerW = 0.1; 
   uint64_t phyRate = 500000;
   uint32_t pktSize = 1000;
@@ -141,14 +141,9 @@
   c.Create (2);
 
   MobilityHelper mobility;
-  Ptr<ListPositionAllocator> positionAlloc = CreateObject<ListPositionAllocator> ();
-  positionAlloc->Add (Vector (0.0, 0.0, 0.0));
-  positionAlloc->Add (Vector (5.0, 0.0, 0.0));
-  mobility.SetPositionAllocator (positionAlloc);
   mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
-
-
   mobility.Install (c);
+  // the actual positions are irrelevant, since we use MatrixPropagationLossModel
 
 
   SpectrumChannelHelper channelHelper;