⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constant.h

📁 gps.c:GPS主代码 constant.h:GPS的头文件 PC temperature control .c:电脑温度控制 code.c:数字血压计的代码 Computer side.c
💻 H
字号:
//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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -