more meaninfgul default parameters for the adhoc-aloha-ideal-phy-matrix-propagation-loss-model example
--- 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;