Add user link parameters

This commit is contained in:
Tim Schubert 2020-08-10 18:28:59 +02:00
parent bb3bcb627c
commit 7293dbbad1
12 changed files with 247 additions and 96 deletions

View file

@ -81,10 +81,12 @@ LeoPropagationLossModel::DoCalcRxPower (double txPowerDbm,
return 0.0;
}
double rxc = -m_atmosphericLoss - m_freeSpacePathLoss;
NS_LOG_DEBUG ("attenuation coefficient= " << rxc << " dB");
// txPowerDbm includes tx antenna gain and losses
// receiver loss and gain added at net device
// P_{RX} = P_{TX} + G_{TX} - L_{TX} - L_{FS} - L_M + G_{RX} - L_{RX}
double rxc = txPowerDbm - m_atmosphericLoss - m_freeSpacePathLoss - m_linkMargin;
return txPowerDbm + rxc;
return rxc;
}
int64_t