I used m_adhocTxDevices = wifi80211p.Install (wifiPhy, wifi80211pMac, m_adhocTxNodes) to install PHY and MAC on my nodes. I need to use
CalcRxPower function which is a public member function under PropagationModelLoss class to calculate rxPower when a node receives a packet. I looked into a few examples yet could not figure out how do I access the object on my nodes.
double rxPower = model->CalcRxPower (TxPower,tx,rx);
In particular, how should I address or define model ?