A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
geocentric-topocentric-conversion-test.cc File Reference
#include <ns3/angles.h>
#include <ns3/geographic-positions.h>
#include <ns3/log.h>
#include <ns3/test.h>
+ Include dependency graph for geocentric-topocentric-conversion-test.cc:

Go to the source code of this file.

Classes

class  GeoToAndFromTopocentricTestCase
 Geographic to/from Topocentric Test Case. More...
 
class  GeoToAndFromTopocentricTestSuite
 Geographic cartesian <--> Topocentric conversion test. More...
 

Namespaces

namespace  anonymous_namespace{geocentric-topocentric-conversion-test.cc}
 

Variables

static GeoToAndFromTopocentricTestSuite g_GeoToAndFromTopocentricTestSuite
 Static variable for test initialization.
 
const std::vector< ns3::Vector > anonymous_namespace{geocentric-topocentric-conversion-test.cc}::GRS80_REFP_1
 Table of expected geocentric coordinates <U, V, W> (meters) for spheroid type GRS80 and reference point 1.
 
const ns3::Vector anonymous_namespace{geocentric-topocentric-conversion-test.cc}::REFP_1_COORD {55.0, 5.0, 200.0}
 Reference point 1 for geocentric <--> topocentric conversion.
 
const std::vector< ns3::Vector > anonymous_namespace{geocentric-topocentric-conversion-test.cc}::SPHERE_REFP_1
 Table of expected geocentric coordinates <U, V, W> (meters) for spheroid type SPHERE and reference point 1.
 
const std::vector< ns3::Vector > anonymous_namespace{geocentric-topocentric-conversion-test.cc}::TEST_COORD
 Table of <longitude (deg), latitude (deg), altitude (m)> coordinates, obtained as the cartesian product of the longitude values (2.1295495 0.0 30.0 60.0 90.0 120.0 150.0 180.0), latitude values (53.80939444 0.0 20.0 40.0 60.0 80.0) and altitude values (73.0 500.0 1000.0).
 
constexpr double anonymous_namespace{geocentric-topocentric-conversion-test.cc}::TOLERANCE_DEG = 5e-3
 Test tolerance with respect to the expected values, in degrees.
 
constexpr double anonymous_namespace{geocentric-topocentric-conversion-test.cc}::TOLERANCE_M = 5
 Test tolerance with respect to the expected values, in meters.
 
const std::vector< ns3::Vector > anonymous_namespace{geocentric-topocentric-conversion-test.cc}::WGS_84_REFP_1
 Table of expected geocentric coordinates <U, V, W> (meters) for spheroid type WGS84 and reference point 1.