ADD: new track message, Entity class and Position class

This commit is contained in:
Henry Winkel
2022-12-20 17:20:35 +01:00
parent 469ecfb099
commit 98ebb563a8
2114 changed files with 482360 additions and 24 deletions

View File

@@ -0,0 +1,14 @@
#include "cgeoid.h"
#include "GeographicLib/Geoid.hpp"
extern "C"
double HeightAboveEllipsoid(double lat, double lon, double h) {
try {
// Declare static so that g is only constructed once
static const GeographicLib::Geoid g("egm2008-1");
return h + GeographicLib::Geoid::GEOIDTOELLIPSOID * g(lat, lon);
}
catch (...) {
return GeographicLib::Math::NaN();
}
}