Use speed of light in air

This commit is contained in:
Tim Schubert 2020-08-28 21:29:57 +02:00
parent b0bd80c8fe
commit 37631d0758
6 changed files with 15 additions and 4 deletions

View file

@ -39,7 +39,8 @@ LeoChannelHelper::LeoChannelHelper ()
m_channelFactory.Set ("PropagationDelay", StringValue ("ns3::ConstantSpeedPropagationDelayModel"));
m_propagationLossFactory.SetTypeId ("ns3::LeoPropagationLossModel");
m_propagationDelayFactory.SetTypeId ("ns3::ConstantSpeedPropagationDelayModel");
m_propagationDelayFactory.Set ("Speed", DoubleValue (LEO_SPEED_OF_LIGHT_IN_AIR));
}
LeoChannelHelper::LeoChannelHelper (std::string constellation) :
@ -338,6 +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> ());
NetDeviceContainer container;

View file

@ -62,6 +62,7 @@ private:
ObjectFactory m_channelFactory;
ObjectFactory m_propagationLossFactory;
ObjectFactory m_propagationDelayFactory;
void SetQueue (ObjectFactory &factory,
std::string type,