mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Use LEO and ISL propagation loss models.
This commit is contained in:
parent
3f223d1d6c
commit
12040289d3
3 changed files with 9 additions and 3 deletions
|
@ -37,6 +37,7 @@ LeoPropagationLossModel::DoCalcRxPower (double txPowerDbm,
|
|||
//Vector bPos = b->GetPosition ();
|
||||
|
||||
// TODO perform line-earth intersection (ray tracing)
|
||||
// TODO check angle between satellite and ground-station
|
||||
|
||||
double rxc = 0;//-m_variable->GetValue ();
|
||||
//NS_LOG_DEBUG ("attenuation coefficient="<<rxc<<"Db");
|
||||
|
|
|
@ -286,6 +286,10 @@ MockNetDevice::TransmitStart (Ptr<Packet> p, const Address &dest)
|
|||
{
|
||||
m_phyTxDropTrace (p);
|
||||
}
|
||||
else
|
||||
{
|
||||
NS_LOG_INFO ("[node " << m_node->GetId () << "] send packet on " << m_ifIndex << " to " << dest);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -416,6 +420,7 @@ MockNetDevice::Receive (Ptr<Packet> packet, Ptr<MockNetDevice> senderDevice)
|
|||
}
|
||||
|
||||
if (packetType != PACKET_OTHERHOST) {
|
||||
NS_LOG_INFO ("[node " << m_node->GetId () << "] received packet on " << m_ifIndex << " from " << remote << " for " << header.GetDestination ());
|
||||
m_macRxTrace (originalPacket);
|
||||
m_rxCallback (this, packet, protocol, remote);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue