libcfe  0.12.1
some useful C-functions
gpstypes.h
Go to the documentation of this file.
1 #ifndef XGPSTYPES_H
2 #define XGPSTYPES_H
3 
4 #include <float.h>
5 
8 typedef double lat_t;
9 typedef double lng_t;
10 typedef double alt_t;
11 typedef float acc_t;
12 
13 /*
14 these are theoretical minima and maxima, the real ones depends on the storage size,
15 but the these values fit into which ever strage class is chosen.
16 */
17 
18 #define LAT_MAX (90.0)
19 #define LAT_MIN (-90.0)
20 #define LNG_MAX (180.0)
21 #define LNG_MIN (-180.0)
22 #define ALT_MAX (9000.0)
23 #define ALT_MIN (-4000.0)
24 
25 /* minima and maxima according to the gps spec */
26 #define LAT_GPS_SPEC_MAX (178.435455)
27 #define LAT_GPS_SPEC_MIN (LAT_MIN)
28 #define LNG_GPS_SPEC_MAX (356.870911)
29 #define LNG_GPS_SPEC_MIN (LNG_MIN)
30 #define ALT_GPS_SPEC_MAX (9107.1)
31 #define ALT_GPS_SPEC_MIN (ALT_MIN)
32 
33 /* minima and maxima of this implementation */
34 #define LAT_REAL_MAX DBL_MAX
35 #define LAT_REAL_MIN DBL_MIN
36 #define LNG_REAL_MAX DBL_MAX
37 #define LNG_REAL_MIN DBL_MIN
38 #define ALT_REAL_MAX DBL_MAX
39 #define ALT_REAL_MIN DBL_MIN
40 
41 #endif /* XGPSTYPES_H */
float acc_t
Definition: gpstypes.h:11
double alt_t
Definition: gpstypes.h:10
double lat_t
Definition: gpstypes.h:8
double lng_t
Definition: gpstypes.h:9