mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 18:13:57 +02:00
Add link params to model with attributes
This commit is contained in:
parent
1224169ff5
commit
27ee6a3697
8 changed files with 77 additions and 12 deletions
|
@ -173,7 +173,8 @@ MockChannel::Deliver (
|
|||
Ptr<PropagationLossModel> pLoss = GetPropagationLoss ();
|
||||
if (pLoss != 0)
|
||||
{
|
||||
if (pLoss->CalcRxPower (1.0, srcMob, dstMob) == 0.0)
|
||||
// check if Rx power is below link margin
|
||||
if (pLoss->CalcRxPower (src->GetTxPower (), srcMob, dstMob) == 0.0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue