Fix LOS computation for ISL

This commit is contained in:
Tim Schubert 2020-08-17 22:50:58 +02:00
parent bf59e66526
commit 0f49ceb4aa
10 changed files with 37 additions and 22 deletions

View file

@ -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,