Add lat long conversion

This commit is contained in:
Tim Schubert 2020-08-23 21:25:54 +02:00
parent b7f459e36a
commit 70c70a19ce
8 changed files with 171 additions and 16 deletions

View file

@ -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