mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-09 02:23:57 +02:00
Add lat long conversion
This commit is contained in:
parent
b7f459e36a
commit
70c70a19ce
8 changed files with 171 additions and 16 deletions
|
@ -8,6 +8,9 @@
|
|||
#include "ns3/object-factory.h"
|
||||
#include "ns3/node-container.h"
|
||||
#include "ns3/constant-position-mobility-model.h"
|
||||
#include "ns3/leo-lat-long.h"
|
||||
|
||||
#define LEO_GND_RAD_EARTH 6.371e6
|
||||
|
||||
/**
|
||||
* \brief Builds a node container of nodes with constant positions
|
||||
|
@ -31,6 +34,15 @@ public:
|
|||
*/
|
||||
NodeContainer Install (const std::string &wpFile);
|
||||
|
||||
/**
|
||||
*
|
||||
* \param location1 first location
|
||||
* \param location2 second location
|
||||
* \returns a node container containing nodes using the specified attributes
|
||||
*/
|
||||
NodeContainer Install (const LeoLatLong &location1,
|
||||
const LeoLatLong &location2);
|
||||
|
||||
/**
|
||||
* Set an attribute for each node
|
||||
*
|
||||
|
@ -41,6 +53,8 @@ public:
|
|||
|
||||
private:
|
||||
ObjectFactory m_gndNodeFactory;
|
||||
|
||||
static Vector3D GetEarthPosition (const LeoLatLong &loc);
|
||||
};
|
||||
|
||||
}; // namespace ns3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue