Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pprz_geodetic_wmm2010.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (C) 2012 Sergey Krukowski <softsr@yahoo.de>.
4  *
5  * This module based on the WMM2010 modell (http://www.ngdc.noaa.gov/geomag/models.shtml).
6  *
7  */
8 
9 #ifndef WMM2010_H
10 #define WMM2010_H
11 
12 #define WMM2010_FRAC 2
13 #define N_MAX_OF_GH 12
14 
15 // Geo mag current observation epoch begin
16 #define GEO_EPOCH 2010.
17 #define YR_MIN 2010.
18 #define YR_MAX 2015.
19 #define NMAX_1 12
20 #define NMAX_2 12
21 
22 #define IEXT 0
23 #define EXT_COEFF1 (double)0
24 #define EXT_COEFF2 (double)0
25 #define EXT_COEFF3 (double)0
26 
28 #define GPS_EPOCH_BEGIN (double)1980.016393442623
29 #define GPS_EPOCH_YEAR 1980
30 #define GPS_EPOCH_MONTH 1
31 #define GPS_EPOCH_DAY 6
32 
33 #define WEEKS_IN_YEAR 52.143
34 #define SECS_IN_YEAR 31536000
35 
36 #define MAXDEG 13
37 #define MAXCOEFF (MAXDEG*(MAXDEG+2)+1)
38 
39 extern const double gh1[];
40 extern const double gh2[];
41 
42 int16_t extrapsh(double date, double dte1, int16_t nmax1, int16_t nmax2, double *gh);
43 int16_t mag_calc(int16_t igdgc, double flat, double flon, double elev, int16_t nmax,
44  double *gh, double *geo_mag_x, double *geo_mag_y, double *geo_mag_z,
45  int16_t iext, double ext1, double ext2, double ext3);
46 
47 #endif
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)
const double gh1[]
signed short int16_t
Definition: types.h:17
int16_t extrapsh(double date, double dte1, int16_t nmax1, int16_t nmax2, double *gh)
const double gh2[]