From a1ca5ae43bf6bc1898476d0c17aa7681ecde8270 Mon Sep 17 00:00:00 2001 From: Nicola Baldo Date: Sun, 21 Apr 2013 21:44:54 +0200 Subject: [PATCH] more meaninfgul default parameters for the adhoc-aloha-ideal-phy-matrix-propagation-loss-model example --- ...dhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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;