mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Use speed of light in air
This commit is contained in:
parent
b0bd80c8fe
commit
37631d0758
6 changed files with 15 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -62,6 +62,7 @@ private:
|
|||
ObjectFactory m_channelFactory;
|
||||
|
||||
ObjectFactory m_propagationLossFactory;
|
||||
ObjectFactory m_propagationDelayFactory;
|
||||
|
||||
void SetQueue (ObjectFactory &factory,
|
||||
std::string type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue