Fix angle and delay computation

This commit is contained in:
Tim Schubert 2020-08-19 19:41:25 +02:00
parent 98468c4857
commit 6a31de4a0e
3 changed files with 40 additions and 23 deletions

View file

@ -184,12 +184,13 @@ MockChannel::Deliver (
{
// check if signal reaches destination
rxPower = pLoss->CalcRxPower (txPower, srcMob, dstMob);
if (rxPower == -1000.0)
if (rxPower <= -1000.0)
{
return false;
}
}
delay += GetPropagationDelay (srcMob, dstMob, txTime);
delay = GetPropagationDelay (srcMob, dstMob, txTime);
NS_LOG_DEBUG ("delay = "<<delay);
}
Simulator::ScheduleWithContext (dst->GetNode ()->GetId (),