DUNE: Uniform Navigational Environment
2.6.0-rc1
|
World-magnetic model 2005-2010 interface class.
Public Member Functions | |
WMM (void) | |
WMM (const FileSystem::Path &root) | |
~WMM (void) | |
double | height (double lat, double lon) |
double | declination (double lat, double lon, double height=0) |
DUNE::Coordinates::WMM::WMM | ( | void | ) |
Constructor.
By default it looks up WMM 2010 data files in the '../etc/wmm' directory relative to the location of the current executable.
References DUNE::FileSystem::Path::applicationFile().
DUNE::Coordinates::WMM::WMM | ( | const FileSystem::Path & | root | ) |
DUNE::Coordinates::WMM::~WMM | ( | void | ) |
Destructor.
double DUNE::Coordinates::WMM::declination | ( | double | lat, |
double | lon, | ||
double | height = 0 |
||
) |
Get magnetic declination for given latitude and longitude (in radians).
[in] | lat | WGS84 latitude |
[in] | lon | WGS84 longitude |
[in] | height | optional height argument (defaults to 0) |
Referenced by DUNE::Navigation::BasicNavigation::checkDeclination().
double DUNE::Coordinates::WMM::height | ( | double | lat, |
double | lon | ||
) |