Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
pprz_geodetic_wmm2010.c File Reference
#include "std.h"
#include "math/pprz_geodetic_wmm2010.h"
+ Include dependency graph for pprz_geodetic_wmm2010.c:

Go to the source code of this file.

Functions

int16_t extrapsh (double date, double dte1, int16_t nmax1, int16_t nmax2, double *gh)
 
int16_t mag_calc (int16_t igdgc, double flat, double flon, double elev, int16_t nmax, double *gh, double *geo_mag_x, double *geo_mag_y, double *geo_mag_z, int16_t iext, double ext1, double ext2, double ext3)
 

Variables

const double gh1 [MAXCOEFF]
 
const double gh2 [MAXCOEFF]
 

Function Documentation

int16_t extrapsh ( double  date,
double  dte1,
int16_t  nmax1,
int16_t  nmax2,
double *  gh 
)

Definition at line 42 of file pprz_geodetic_wmm2010.c.

References gh1, and gh2.

Referenced by geo_mag_event().

+ Here is the caller graph for this function:

int16_t mag_calc ( int16_t  igdgc,
double  flat,
double  flon,
double  elev,
int16_t  nmax,
double *  gh,
double *  geo_mag_x,
double *  geo_mag_y,
double *  geo_mag_z,
int16_t  iext,
double  ext1,
double  ext2,
double  ext3 
)

Definition at line 84 of file pprz_geodetic_wmm2010.c.

References Int32Mat33::m, and p.

Referenced by geo_mag_event().

+ Here is the caller graph for this function:

Variable Documentation

const double gh1[MAXCOEFF]
Initial value:
= {
0.0,-29496.6,-1586.3,4944.4,
-2396.6,3026.1,-2707.7, 1668.6,-576.1,
1340.1,-2326.2,-160.2, 1231.9,251.9, 634,-536.6,
912.6,808.9,286.4,166.7,-211.2,-357.1,164.3,89.4,-309.1,
-230.9,357.2,44.6,200.3,188.9,-141.1,-118.2,-163.0, 0.0,-7.8,100.9,
72.8,68.6,-20.8,76.0,44.1,-141.4,61.5,-22.8,-66.3,13.2,3.1,-77.9,55.0,
80.5,-75.1,-57.9,-4.7,-21.1,45.3,6.5,13.9,24.9,10.4,7.0,1.7,-27.7,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,-0.1,-0.1,0.2,0.0,0.0,-0.1,-0.1,-0.1,-0.2,0.0,0.0,-0.1,-0.1,-0.2,-0.2,0.0,-0.2,-0.1,
0.0,0.0,0.0,0.0,0.1,0.1,0.0,0.0,0.1,0.0,0.0,0.0,0.1,0.0,0.0,0.0,-0.1,0.0,-0.1,-0.1,0.0,0.0,-0.1,
0.0,0.0,0.0,0.1,0.0,0.1,0.0,-0.1,0.0,0.0,0.0,0.0,0.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-0.1,0.0,0.1,0.0
}

Definition at line 27 of file pprz_geodetic_wmm2010.c.

Referenced by extrapsh().