diff --git a/helper/leo-channel-helper.cc b/helper/leo-channel-helper.cc index 1f58508..4d729b5 100644 --- a/helper/leo-channel-helper.cc +++ b/helper/leo-channel-helper.cc @@ -32,6 +32,9 @@ LeoChannelHelper::LeoChannelHelper () m_satDeviceFactory.Set ("DeviceType", EnumValue (LeoMockNetDevice::SAT)); m_channelFactory.SetTypeId ("ns3::LeoMockChannel"); + + m_propagationLossFactory.SetTypeId ("ns3::LeoPropagationLossModel"); + } LeoChannelHelper::LeoChannelHelper (std::string constellation) : @@ -119,8 +122,6 @@ LeoChannelHelper::SetConstellationAttributes (double eirp, m_gndDeviceFactory.Set ("DataRate", DoubleValue (dataRate)); m_satDeviceFactory.Set ("DataRate", DoubleValue (dataRate)); - m_propagationLossFactory.SetTypeId ("ns3::LeoPropagationLossModel"); - m_propagationLossFactory.Set ("ElevationAngle", DoubleValue (elevationAngle)); m_propagationLossFactory.Set ("FreeSpaceLoss", DoubleValue (fspl)); m_propagationLossFactory.Set ("AtmosphericLoss", DoubleValue (atmosphericLoss));