Fix LOS computation for ISL

This commit is contained in:
Tim Schubert 2020-08-17 22:50:58 +02:00
parent bf59e66526
commit 0f49ceb4aa
10 changed files with 37 additions and 22 deletions

View file

@ -8,6 +8,7 @@
#include "ns3/names.h"
#include "ns3/assert.h"
#include "ns3/string.h"
#include "ns3/data-rate.h"
#include "../model/leo-mock-channel.h"
#include "../model/leo-mock-net-device.h"
@ -119,11 +120,11 @@ LeoChannelHelper::SetConstellationAttributes (double eirp,
m_satDeviceFactory.Set ("RxLoss", DoubleValue (rxGain));
m_satDeviceFactory.Set ("RxGain", DoubleValue (rxLoss));
m_gndDeviceFactory.Set ("DataRate", DoubleValue (dataRate));
m_satDeviceFactory.Set ("DataRate", DoubleValue (dataRate));
m_gndDeviceFactory.Set ("DataRate", DataRateValue (DataRate (dataRate)));
m_satDeviceFactory.Set ("DataRate", DataRateValue (DataRate (dataRate)));
m_propagationLossFactory.Set ("ElevationAngle", DoubleValue (elevationAngle));
m_propagationLossFactory.Set ("FreeSpaceLoss", DoubleValue (fspl));
m_propagationLossFactory.Set ("FreeSpacePathLoss", DoubleValue (fspl));
m_propagationLossFactory.Set ("AtmosphericLoss", DoubleValue (atmosphericLoss));
m_propagationLossFactory.Set ("LinkMargin", DoubleValue (linkMargin));
}