Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Geomagnetic field model
+ Collaboration diagram for Geomagnetic field model:

Macros

#define WMM2020_FRAC   2
 
#define N_MAX_OF_GH   12
 
#define GEO_EPOCH   2020.
 
#define YR_MIN   2020.
 
#define YR_MAX   2025.
 
#define NMAX_1   12
 
#define NMAX_2   12
 
#define IEXT   0
 
#define EXT_COEFF1   (double)0
 
#define EXT_COEFF2   (double)0
 
#define EXT_COEFF3   (double)0
 
#define GPS_EPOCH_BEGIN   (double)1980.016393442623
 Begin of the GPS epoch. More...
 
#define GPS_EPOCH_YEAR   1980
 
#define GPS_EPOCH_MONTH   1
 
#define GPS_EPOCH_DAY   6
 
#define WEEKS_IN_YEAR   52.14285
 
#define SECS_IN_YEAR   31536000
 
#define MAXDEG   13
 
#define MAXCOEFF   (MAXDEG*(MAXDEG+2)+1)
 

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 []
 
const double gh2 []
 

Detailed Description

Macro Definition Documentation

#define EXT_COEFF1   (double)0

Definition at line 52 of file pprz_geodetic_wmm2020.h.

Referenced by geo_mag_event(), and init_ltp().

#define EXT_COEFF2   (double)0

Definition at line 53 of file pprz_geodetic_wmm2020.h.

Referenced by geo_mag_event(), and init_ltp().

#define EXT_COEFF3   (double)0

Definition at line 54 of file pprz_geodetic_wmm2020.h.

Referenced by geo_mag_event(), and init_ltp().

#define GEO_EPOCH   2020.

Definition at line 45 of file pprz_geodetic_wmm2020.h.

Referenced by geo_mag_event(), and init_ltp().

#define GPS_EPOCH_BEGIN   (double)1980.016393442623

Begin of the GPS epoch.

Definition at line 57 of file pprz_geodetic_wmm2020.h.

Referenced by geo_mag_event().

#define GPS_EPOCH_DAY   6

Definition at line 60 of file pprz_geodetic_wmm2020.h.

#define GPS_EPOCH_MONTH   1

Definition at line 59 of file pprz_geodetic_wmm2020.h.

#define GPS_EPOCH_YEAR   1980

Definition at line 58 of file pprz_geodetic_wmm2020.h.

#define IEXT   0

Definition at line 51 of file pprz_geodetic_wmm2020.h.

Referenced by geo_mag_event(), and init_ltp().

#define MAXCOEFF   (MAXDEG*(MAXDEG+2)+1)

Definition at line 67 of file pprz_geodetic_wmm2020.h.

Referenced by geo_mag_event(), and init_ltp().

#define MAXDEG   13

Definition at line 66 of file pprz_geodetic_wmm2020.h.

#define N_MAX_OF_GH   12

Definition at line 42 of file pprz_geodetic_wmm2020.h.

#define NMAX_1   12

Definition at line 48 of file pprz_geodetic_wmm2020.h.

Referenced by geo_mag_event(), and init_ltp().

#define NMAX_2   12

Definition at line 49 of file pprz_geodetic_wmm2020.h.

Referenced by geo_mag_event(), and init_ltp().

#define SECS_IN_YEAR   31536000

Definition at line 64 of file pprz_geodetic_wmm2020.h.

Referenced by geo_mag_event().

#define WEEKS_IN_YEAR   52.14285

Definition at line 63 of file pprz_geodetic_wmm2020.h.

Referenced by geo_mag_event().

#define WMM2020_FRAC   2

Definition at line 41 of file pprz_geodetic_wmm2020.h.

#define YR_MAX   2025.

Definition at line 47 of file pprz_geodetic_wmm2020.h.

#define YR_MIN   2020.

Definition at line 46 of file pprz_geodetic_wmm2020.h.

Function Documentation

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

Definition at line 64 of file pprz_geodetic_wmm2020.c.

References gh1, and gh2.

Referenced by geo_mag_event(), and init_ltp().

+ 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 105 of file pprz_geodetic_wmm2020.c.

References Int32RMat::m, and p.

Referenced by geo_mag_event(), and init_ltp().

+ Here is the caller graph for this function:

Variable Documentation

const double gh1[]

Definition at line 32 of file pprz_geodetic_wmm2020.c.

Referenced by extrapsh().

const double gh2[]

Definition at line 48 of file pprz_geodetic_wmm2020.c.

Referenced by extrapsh().