From 1c47ac30c77f44bee0f31b4164508fb96591618a Mon Sep 17 00:00:00 2001
From: Tim Schubert <tim.schubert@tu-bs.de>
Date: Sun, 30 Aug 2020 22:45:11 +0200
Subject: [PATCH] Fixup example

---
 examples/leo-delay-tracing-example.cc | 12 ++++++------
 helper/leo-channel-helper.cc          |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/examples/leo-delay-tracing-example.cc b/examples/leo-delay-tracing-example.cc
index 0c70894..e223899 100644
--- a/examples/leo-delay-tracing-example.cc
+++ b/examples/leo-delay-tracing-example.cc
@@ -74,7 +74,7 @@ int main (int argc, char *argv[])
   CommandLine cmd;
   std::string orbitFile;
   std::string traceFile;
-  LeoLatLong source (51.84, 10.28);
+  LeoLatLong source (51.399, 10.536);
   LeoLatLong destination (40.76, -73.96);
   std::string islRate = "2Gbps";
   std::string constellation = "TelesatGateway";
@@ -83,9 +83,9 @@ int main (int argc, char *argv[])
   double interval = 1;
   double duration = 100;
   bool islEnabled = true;
-  bool traceDrops = true;
-  bool traceTxRx = true;
-  bool traceFwd = true;
+  bool traceDrops = false;
+  bool traceTxRx = false;
+  bool traceFwd = false;
   std::string routingProto = "aodv";
   cmd.AddValue("orbitFile", "CSV file with orbit parameters", orbitFile);
   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 ("RerrRateLimit", UintegerValue (1000));
       //aodv.Set ("RreqRateLimit", UintegerValue (10));
-      aodv.Set ("TtlThreshold", UintegerValue (25));
-      aodv.Set ("NetDiameter", UintegerValue (50));
+      //aodv.Set ("TtlThreshold", UintegerValue (10));
+      //aodv.Set ("NetDiameter", UintegerValue (50));
       stack.SetRoutingHelper (aodv);
     }
 
diff --git a/helper/leo-channel-helper.cc b/helper/leo-channel-helper.cc
index 48a6ce7..dcb7be6 100644
--- a/helper/leo-channel-helper.cc
+++ b/helper/leo-channel-helper.cc
@@ -339,7 +339,7 @@ LeoChannelHelper::Install (std::vector<Ptr<Node> > &satellites, std::vector<Ptr<
 
   Ptr<LeoMockChannel> channel = m_channelFactory.Create<LeoMockChannel> ();
   channel->SetPropagationLoss (m_propagationLossFactory.Create<LeoPropagationLossModel> ());
-  channel->SetPropagationDelay (m_propagationLossFactory.Create<ConstantSpeedPropagationDelayModel> ());
+  channel->SetPropagationDelay (m_propagationDelayFactory.Create<ConstantSpeedPropagationDelayModel> ());
 
   NetDeviceContainer container;