diff --git a/src/spectrum/examples/adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc b/src/spectrum/examples/adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc index 9f24d1e96..e2c3d7b5f 100644 --- a/src/spectrum/examples/adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc +++ b/src/spectrum/examples/adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc @@ -122,7 +122,7 @@ GlobalPathlossDatabase::Print () 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 @@ int main (int argc, char** argv) c.Create (2); MobilityHelper mobility; - Ptr positionAlloc = CreateObject (); - 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;