Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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
#include "
std.h
"
38
39
/* Computation for the WGS84 geoid only */
40
#define E 0.08181919106
41
#define K0 0.9996
42
#define DELTA_EAST 500000.
43
#define DELTA_NORTH 0.
44
#define A 6378137.0
45
#define N (K0*A)
46
47
#define LambdaOfUtmZone(utm_zone) RadOfDeg((utm_zone-1)*6-180+3)
48
#define UtmZoneOfLlaLonRad(lla_lon) (floor(DegOfRad(lla_lon) + 180) / 6) + 1
49
#define UtmZoneOfLlaLonDeg(lla_lon) (floor((lla_lon) / 1e7 + 180) / 6) + 1
50
51
static
const
float
serie_coeff_proj_mercator
[5] = {
52
0.99832429842242842444,
53
0.00083632803657738403,
54
0.00000075957783563707,
55
0.00000000119563131778,
56
0.00000000000241079916
57
};
58
59
static
const
float
serie_coeff_proj_mercator_inverse
[5] = {
60
0.998324298422428424,
61
0.000837732168742475825,
62
5.90586914811817062e-08,
63
1.6734091890305064e-10,
64
2.13883575853313883e-13
65
};
66
67
#ifdef __cplusplus
68
}
/* extern "C" */
69
#endif
70
71
#endif
/* PPRZ_GEODETIC_UTM_H */
72
serie_coeff_proj_mercator_inverse
static const float serie_coeff_proj_mercator_inverse[5]
Definition:
pprz_geodetic_utm.h:59
std.h
serie_coeff_proj_mercator
static const float serie_coeff_proj_mercator[5]
Definition:
pprz_geodetic_utm.h:51
sw
airborne
math
pprz_geodetic_utm.h
Generated on Tue Feb 1 2022 13:51:14 for Paparazzi UAS by
1.8.17