mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Fix LOS computation for ISL
This commit is contained in:
parent
bf59e66526
commit
0f49ceb4aa
10 changed files with 37 additions and 22 deletions
|
@ -171,8 +171,8 @@ MockChannel::Deliver (
|
|||
NS_LOG_FUNCTION (this << p << src->GetAddress () << dst->GetAddress () << txTime);
|
||||
Time delay = txTime;
|
||||
|
||||
Ptr<MobilityModel> srcMob = src->GetObject<MobilityModel> ();
|
||||
Ptr<MobilityModel> dstMob = dst->GetObject<MobilityModel> ();
|
||||
Ptr<MobilityModel> srcMob = src->GetNode ()->GetObject<MobilityModel> ();
|
||||
Ptr<MobilityModel> dstMob = dst->GetNode ()->GetObject<MobilityModel> ();
|
||||
|
||||
double txPower = src->GetTxPower ();
|
||||
double rxPower = txPower;
|
||||
|
@ -191,6 +191,10 @@ MockChannel::Deliver (
|
|||
}
|
||||
delay += GetPropagationDelay (srcMob, dstMob, txTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Simulator::ScheduleWithContext (dst->GetNode ()->GetId (),
|
||||
delay,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue