simulator.h

来自「GPS卫星导航接收机的仿真程序。用C语言实现」· C头文件 代码 · 共 58 行

H
58
字号
#ifndef _SIMULATOR_H_	

#define	 _SIMULATOR_H_

#define		SUCCESS					0
#define		FAILURE					-1

#define		LIGHTSPEED				299792458
#define		FrequencyL1				1575.42e6
#define		ChipRate					1.023e6
#define		SIG_BW					2e6
#define		PI							3.1415926535897932384626
#define		SAT_NUM					37

#define		ELEVCUTOFF				5					// In degrees

#define		NOISE_DENSITY			-203

#define		TrajTD					0.02

#define		ENUPOSFILE				1
#define		XYZPOSFILE				(1-ENUPOSFILE)

#define		WAVEINTERVAL			(1e-3/1023.0/100.0)
#define		WAVEFORM_LENGTH		800

#define     TableLength         16


typedef struct option
{
	double	IF_Frequency;
	double	Sampling_Frequency;
	double	CN0;
	double	Filter_BandWidth;
	int		Quantization_Bit;
	int		IQ_Switch;

	int		Iono_Switch;
	int		Tropo_Switch;
	int		SatClkErr_Switch;
	int		RxClkErr_Switch;
	int		SatObitErr_Switch;
	int		Multipath_Switch;

	char	Traj_filename[100];
	char	Eph_filename[100];
	char	Output_filename_I[100];
	char	Output_filename_Q[100];
	double  temperature;
	double  pressure;
	double  relativehumidity;
	double  alpha[4];
	double  beta[4];
}	OPTION;


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?