|
Bugzilla – Full Text Bug Listing |
| Summary: | Wrong calculation of pathloss within UanPropModelThorp::GetPathLossDb (...) | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Federico Guerra <fedwar82> |
| Component: | uan | Assignee: | Andrea Sacco <andrea.sacco85> |
| Status: | RESOLVED FIXED | ||
| Severity: | blocker | CC: | ns-bugs, tamoghna.ojha |
| Priority: | P5 | ||
| Version: | ns-3.15 | ||
| Hardware: | All | ||
| OS: | All | ||
I set the importance to blocker since this bug could invalidate any paper/research done with UAN. Fixed: changeset 9129 |
Within this function the distance is obtained in meters, but a piece of the calculation should be done in kilometers, as hinted by the function GetAttenDbKm (). ----------------- HINTED SOLUTION: -------------------- double UanPropModelThorp::GetPathLossDb (Ptr<MobilityModel> a, Ptr<MobilityModel> b, UanTxMode mode) { double dist = a->GetDistanceFrom (b); return m_SpreadCoef * 10.0 * std::log10 (dist) + dist/1000.0 * GetAttenDbKm (mode.GetCenterFreqHz () / 1000.0); }