Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef LIBSWIFTNAV_COORD_SYSTEM_H
00014 #define LIBSWIFTNAV_COORD_SYSTEM_H
00015
00027 #define WGS84_A 6378137.0
00028
00030 #define WGS84_IF 298.257223563
00031
00032 #define WGS84_F (1/WGS84_IF)
00033
00034 #define WGS84_B (WGS84_A*(1-WGS84_F))
00035
00036 #define WGS84_E (sqrt(2*WGS84_F - WGS84_F*WGS84_F))
00037
00038
00039
00040
00041 void wgsllh2ecef(const double *llh, double *ecef);
00042 void wgsecef2llh(const double ecef[3], double llh[3]);
00043
00044 void wgsecef2ned(const double ecef[3], const double ref_ecef[3],
00045 double ned[3]);
00046 void wgsecef2ned_d(const double ecef[3], const double ref_ecef[3],
00047 double ned[3]);
00048
00049 void wgsned2ecef(const double ned[3], const double ref_ecef[3],
00050 double ecef[3]);
00051 void wgsned2ecef_d(const double ned[3], const double ref_ecef[3],
00052 double ecef[3]);
00053
00054 void wgsecef2azel(const double ecef[3], const double ref_ecef[3],
00055 double* azimuth, double* elevation);
00056
00057 #endif
00058