examples: Remove commented lines in wireless examples
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user