mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Use propagation loss
This commit is contained in:
parent
9fdd70166c
commit
582d6c58d0
6 changed files with 14 additions and 18 deletions
|
@ -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 (),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue