Fixup example

This commit is contained in:
Tim Schubert 2020-08-30 22:45:11 +02:00
parent 40dbd86736
commit 1c47ac30c7
2 changed files with 7 additions and 7 deletions

View file

@ -74,7 +74,7 @@ int main (int argc, char *argv[])
CommandLine cmd; CommandLine cmd;
std::string orbitFile; std::string orbitFile;
std::string traceFile; std::string traceFile;
LeoLatLong source (51.84, 10.28); LeoLatLong source (51.399, 10.536);
LeoLatLong destination (40.76, -73.96); LeoLatLong destination (40.76, -73.96);
std::string islRate = "2Gbps"; std::string islRate = "2Gbps";
std::string constellation = "TelesatGateway"; std::string constellation = "TelesatGateway";
@ -83,9 +83,9 @@ int main (int argc, char *argv[])
double interval = 1; double interval = 1;
double duration = 100; double duration = 100;
bool islEnabled = true; bool islEnabled = true;
bool traceDrops = true; bool traceDrops = false;
bool traceTxRx = true; bool traceTxRx = false;
bool traceFwd = true; bool traceFwd = false;
std::string routingProto = "aodv"; std::string routingProto = "aodv";
cmd.AddValue("orbitFile", "CSV file with orbit parameters", orbitFile); cmd.AddValue("orbitFile", "CSV file with orbit parameters", orbitFile);
cmd.AddValue("traceFile", "CSV file to store mobility trace in", traceFile); cmd.AddValue("traceFile", "CSV file to store mobility trace in", traceFile);
@ -153,8 +153,8 @@ int main (int argc, char *argv[])
//aodv.Set ("RreqRetries", UintegerValue (1000)); //aodv.Set ("RreqRetries", UintegerValue (1000));
//aodv.Set ("RerrRateLimit", UintegerValue (1000)); //aodv.Set ("RerrRateLimit", UintegerValue (1000));
//aodv.Set ("RreqRateLimit", UintegerValue (10)); //aodv.Set ("RreqRateLimit", UintegerValue (10));
aodv.Set ("TtlThreshold", UintegerValue (25)); //aodv.Set ("TtlThreshold", UintegerValue (10));
aodv.Set ("NetDiameter", UintegerValue (50)); //aodv.Set ("NetDiameter", UintegerValue (50));
stack.SetRoutingHelper (aodv); stack.SetRoutingHelper (aodv);
} }

View file

@ -339,7 +339,7 @@ LeoChannelHelper::Install (std::vector<Ptr<Node> > &satellites, std::vector<Ptr<
Ptr<LeoMockChannel> channel = m_channelFactory.Create<LeoMockChannel> (); Ptr<LeoMockChannel> channel = m_channelFactory.Create<LeoMockChannel> ();
channel->SetPropagationLoss (m_propagationLossFactory.Create<LeoPropagationLossModel> ()); channel->SetPropagationLoss (m_propagationLossFactory.Create<LeoPropagationLossModel> ());
channel->SetPropagationDelay (m_propagationLossFactory.Create<ConstantSpeedPropagationDelayModel> ()); channel->SetPropagationDelay (m_propagationDelayFactory.Create<ConstantSpeedPropagationDelayModel> ());
NetDeviceContainer container; NetDeviceContainer container;