constant.h
来自「gps.c:GPS主代码 constant.h:GPS的头文件 PC tem」· C头文件 代码 · 共 41 行
H
41 行
//CONSTANT
#include <Mega32.h>
#include <math.h>
#define begin {
#define end }
// % this GPS utility defines physical constants to be used in the
// % GPS functions and utilities
// %
// % constants defined:
// % 'mu' : G*Me, the "gravitational constant" for orbital motion
// % about the Earth
// % 'AA' : the semi-major axis of the reference ellipsoid (WGS-84)
// % 'BB' : the semi-minor axis of the reference ellipsoid (WGS-84)
// % 'esquare' : the square of the Earth's orbital eccentricity
// % 'OmegaE' : the sidereal rotation rate of the Earth (WGS-84)
// % 'c' : the speed of light (meters/second)
// % 'degrad' : a constant used for converting degrees to radians
// % 'leapSeconds' : the number of leap seconds currently for the
// % GPS system (seconds)
// % 'f0' : the fundamental frequency for the GPS system (Hertz)
// % 'f' : the L1 carrier frequency (Hertz)
// % 'lambda' : the L1 carrier wave length (meters)
#define muearth 398600500000000.0 //398600.5*(10^9) meters^3/second^2
#define AA 6378137.00000 // meters
#define BB 6356752.31425 // meters
#define esquare 0.00669437998863492 //(AA^2 - BB^2) / AA^2
#define OmegaE 0.00007292115 // 7.2921151467*(10^-5) radians/second
#define c 299792458.0 // meters/second
#define degrad 0.0174532925199433 // pi/180.0
#define leapSeconds 13.0 // seconds
#define f0 10230000.0 // 10.23*(10^6) Hertz
#define f 1575420000.0 // 154*f0 Hertz
#define lambda 0.190293672798365 // c/f meters
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?