examples: Remove commented lines in wireless examples

This commit is contained in:
Sébastien Deronne
2018-01-20 18:32:32 +01:00
parent 4e27c5e008
commit 0d6f46f648
6 changed files with 0 additions and 14 deletions

View File

@@ -447,10 +447,6 @@ Experiment::Run (const WifiHelper &wifi, const YansWifiPhyHelper &wifiPhy,
}
mobil.Install (c);
// NS_LOG_INFO ("Enabling global routing on all nodes");
// Ipv4GlobalRoutingHelper::PopulateRoutingTables ();
if ( scenario == 1 && enableRouting)
{
SelectSrcDest (c);

View File

@@ -383,7 +383,6 @@ int main (int argc, char *argv[])
//Configure the STA nodes
wifi.SetRemoteStationManager ("ns3::AarfWifiManager", "RtsCtsThreshold", UintegerValue (rtsThreshold));
//wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode",StringValue ("ErpOfdmRate6Mbps"),"ControlMode",StringValue ("ErpOfdmRate6Mbps"));
wifiPhy.Set ("TxPowerStart", DoubleValue (maxPower));
wifiPhy.Set ("TxPowerEnd", DoubleValue (maxPower));

View File

@@ -84,7 +84,6 @@ Experiment::AdvancePosition (Ptr<Node> node)
return;
}
SetPosition (node, pos);
//std::cout << "x="<<pos.x << std::endl;
Simulator::Schedule (Seconds (1.0), &Experiment::AdvancePosition, this, node);
}

View File

@@ -103,10 +103,6 @@ AdvancePosition (Ptr<Node> node)
}
SetPosition (node, pos);
if (g_verbose)
{
//std::cout << "x="<<pos.x << std::endl;
}
Simulator::Schedule (Seconds (1.0), &AdvancePosition, node);
}

View File

@@ -127,8 +127,6 @@ static void GenerateTraffic (Ptr<Socket> socket, uint32_t pktSize,
int main (int argc, char *argv[])
{
// LogComponentEnable ("InterferenceHelper", LOG_LEVEL_ALL);
std::string phyMode ("DsssRate1Mbps");
double Prss = -80; // -dBm
double Irss = -95; // -dBm

View File

@@ -219,8 +219,6 @@ int main (int argc, char *argv[])
Config::Connect ("/NodeList/0/DeviceList/*/Phy/State/State", MakeCallback (&PhyStateTrace<0>));
Config::Connect ("/NodeList/1/DeviceList/*/Phy/State/State", MakeCallback (&PhyStateTrace<1>));
// wifiPhy.EnablePcap ("wifi-sleep", devices);
Simulator::Stop (Seconds (duration + 1));
Simulator::Run ();