dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WMMInternal.h File Reference

Include file of the WorldMagModel internal functionality. More...

Go to the source code of this file.

Data Structures

struct  WMMtype_MagneticModel
 
struct  WMMtype_Ellipsoid
 
struct  WMMtype_CoordGeodetic
 
struct  WMMtype_CoordSpherical
 
struct  WMMtype_Date
 
struct  WMMtype_LegendreFunction
 
struct  WMMtype_MagneticResults
 
struct  WMMtype_SphericalHarmonicVariables
 
struct  WMMtype_GeoMagneticElements
 

Macros

#define TRUE   ((uint16_t)1)
 
#define FALSE   ((uint16_t)0)
 
#define WMM_MAX_MODEL_DEGREES   12
 
#define WMM_MAX_SECULAR_VARIATION_MODEL_DEGREES   12
 
#define NUMTERMS   91
 
#define NUMPCUP   92
 
#define NUMPCUPS   13
 

Functions

void WMM_Set_Coeff_Array ()
 
int WMM_GeodeticToSpherical (WMMtype_CoordGeodetic *CoordGeodetic, WMMtype_CoordSpherical *CoordSpherical)
 
int WMM_DateToYear (uint16_t month, uint16_t day, uint16_t year)
 
int WMM_Geomag (WMMtype_CoordSpherical *CoordSpherical, WMMtype_CoordGeodetic *CoordGeodetic, WMMtype_GeoMagneticElements *GeoMagneticElements)
 
int WMM_AssociatedLegendreFunction (WMMtype_CoordSpherical *CoordSpherical, uint16_t nMax, WMMtype_LegendreFunction *LegendreFunction)
 
int WMM_CalculateGeoMagneticElements (WMMtype_MagneticResults *MagneticResultsGeo, WMMtype_GeoMagneticElements *GeoMagneticElements)
 
int WMM_CalculateSecularVariation (WMMtype_MagneticResults *MagneticVariation, WMMtype_GeoMagneticElements *MagneticElements)
 
int WMM_ComputeSphericalHarmonicVariables (WMMtype_CoordSpherical *CoordSpherical, uint16_t nMax, WMMtype_SphericalHarmonicVariables *SphVariables)
 
int WMM_PcupLow (float *Pcup, float *dPcup, float x, uint16_t nMax)
 
int WMM_PcupHigh (float *Pcup, float *dPcup, float x, uint16_t nMax)
 
int WMM_RotateMagneticVector (WMMtype_CoordSpherical *, WMMtype_CoordGeodetic *CoordGeodetic, WMMtype_MagneticResults *MagneticResultsSph, WMMtype_MagneticResults *MagneticResultsGeo)
 
int WMM_SecVarSummation (WMMtype_LegendreFunction *LegendreFunction, WMMtype_SphericalHarmonicVariables *SphVariables, WMMtype_CoordSpherical *CoordSpherical, WMMtype_MagneticResults *MagneticResults)
 
int WMM_SecVarSummationSpecial (WMMtype_SphericalHarmonicVariables *SphVariables, WMMtype_CoordSpherical *CoordSpherical, WMMtype_MagneticResults *MagneticResults)
 
int WMM_Summation (WMMtype_LegendreFunction *LegendreFunction, WMMtype_SphericalHarmonicVariables *SphVariables, WMMtype_CoordSpherical *CoordSpherical, WMMtype_MagneticResults *MagneticResults)
 
int WMM_SummationSpecial (WMMtype_SphericalHarmonicVariables *SphVariables, WMMtype_CoordSpherical *CoordSpherical, WMMtype_MagneticResults *MagneticResults)
 
float WMM_get_main_field_coeff_g (uint16_t index)
 Comput the MainFieldCoeffH accounting for the date. More...
 
float WMM_get_main_field_coeff_h (uint16_t index)
 
float WMM_get_secular_var_coeff_g (uint16_t index)
 
float WMM_get_secular_var_coeff_h (uint16_t index)
 

Detailed Description

Include file of the WorldMagModel internal functionality.

Author
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
Tau Labs, http://taulabs.org, Copyright (C) 2013-2014
See Also
The GNU Public License (GPL) Version 3

Definition in file WMMInternal.h.