mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-09 02:23:57 +02:00
Simplify beam angle computation
This commit is contained in:
parent
1531696255
commit
ae1d24ca80
5 changed files with 43 additions and 168 deletions
|
@ -6,6 +6,8 @@
|
|||
#include <ns3/object.h>
|
||||
#include <ns3/propagation-loss-model.h>
|
||||
|
||||
#define LEO_PROP_EARTH_RAD 6.37101e6
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
class LeoPropagationLossModel : public PropagationLossModel
|
||||
|
@ -15,15 +17,8 @@ public:
|
|||
LeoPropagationLossModel ();
|
||||
virtual ~LeoPropagationLossModel ();
|
||||
|
||||
static double GetAngle (Ptr<MobilityModel> a, Ptr<MobilityModel> b);
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
* Cutoff distance for signal
|
||||
*/
|
||||
double m_cutoffDistance;
|
||||
|
||||
/**
|
||||
* Maximum elevation angle
|
||||
*/
|
||||
|
@ -65,8 +60,7 @@ private:
|
|||
void SetElevationAngle (double angle);
|
||||
double GetElevationAngle () const;
|
||||
|
||||
void SetCutoffDistance (double d);
|
||||
double GetCutoffDistance () const;
|
||||
double GetCutoffDistance (const Ptr<MobilityModel> sat) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue