mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 18:13:57 +02:00
Fix angle and delay computation
This commit is contained in:
parent
98468c4857
commit
6a31de4a0e
3 changed files with 40 additions and 23 deletions
|
@ -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 (),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue