Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
pprz_geodetic_utm.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2011 Felix Ruess <felix.ruess@gmail.com>
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
30 #ifndef PPRZ_GEODETIC_UTM_H
31 #define PPRZ_GEODETIC_UTM_H
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 /* Computation for the WGS84 geoid only */
38 #define E 0.08181919106
39 #define K0 0.9996
40 #define DELTA_EAST 500000.
41 #define DELTA_NORTH 0.
42 #define A 6378137.0
43 #define N (K0*A)
44 
45 #define LambdaOfUtmZone(utm_zone) RadOfDeg((utm_zone-1)*6-180+3)
46 
47 static const float serie_coeff_proj_mercator[5] = {
48  0.99832429842242842444,
49  0.00083632803657738403,
50  0.00000075957783563707,
51  0.00000000119563131778,
52  0.00000000000241079916
53 };
54 
55 static const float serie_coeff_proj_mercator_inverse[5] = {
56  0.998324298422428424,
57  0.000837732168742475825,
58  5.90586914811817062e-08,
59  1.6734091890305064e-10,
60  2.13883575853313883e-13
61 };
62 
63 #ifdef __cplusplus
64 } /* extern "C" */
65 #endif
66 
67 #endif /* PPRZ_GEODETIC_UTM_H */
68 
static const float serie_coeff_proj_mercator_inverse[5]
static const float serie_coeff_proj_mercator[5]