Use propagation loss

This commit is contained in:
Tim Schubert 2020-08-07 12:42:53 +02:00
parent 9fdd70166c
commit 582d6c58d0
6 changed files with 14 additions and 18 deletions

View file

@ -161,6 +161,13 @@ MockChannel::Deliver (
{
NS_LOG_FUNCTION (this << p << src->GetAddress () << dst->GetAddress () << txTime);
double rxPower = GetPropagationLoss ()->CalcRxPower (1.0, src, dst);
if (rxPower == 0.0)
{
return false;
}
Time delay = GetDelay (src, dst, txTime);
Simulator::ScheduleWithContext (dst->GetNode ()->GetId (),