📄 gpscon.m
字号:
% gpscon.m
% Scope: This MATLAB macro sets the most used GPS constants as global
% variables.
% Usage: gpscon
% Description of global parameters:
% f0 - output, fundamental frequency, in Mhz
% fL1 - output, L1 frequency, in MHz (154*f0)
% fL2 - output, L2 frequency, in MHz (120*f0)
% lambdaL1 - output, L1 carrier wavelength, in meters
% lambdaL2 - output, L2 carrier wavelength, in meters
% fca_code - output, coarse/acquisition code (bit rate in Hz)
% fp_code - output, precision code (bit rate in Hz)
% fL1pL2 - output, L1 + L2 frequency, in Mhz (274*f0)
% fL1mL2 - output, L1 - L2 frequency, in Mhz (34*f0)
% lambdaL1pL2 - output, L1 + L2 wavelength, in meters
% lambdaL1mL2 - output, L1 - L2 wavelength, in meters
% secpmin - output, number of seconds per minute
% secph - output, number of seconds per hour
% secpday - output, number of seconds per day
% secpweek - output, number of seconds per week
% secphday - output, number of seconds per half day
% secphweek - output, number of seconds per half week
% Last update: 04/06/00
% Copyright (C) 1996-00 by LL Consulting. All Rights Reserved.
global f0 fL1 fL2 lambdaL1 lambdaL2 fca_code fp_code
global fL1pL2 fL1mL2 lambdaL1pL2 lambdaL1mL2
global secpmin secph secpday secpweek secphday secphweek
f0 = 10.23;
fL1 = 1575.42;
fL2 = 1227.6;
lambdaL1 = 0.19029367279836; % c_speed / L1 frequency
lambdaL2 = 0.24421021342457; % c_speed / L2 frequency
fca_code = 1.023e+6;
fp_code = 10.23e+6;
% linear combinations (narrow lane and wide lane)
fL1pL2 = 2803.02;
fL1mL2 = 347.82;
lambdaL1pL2 = 0.10695337814215; % c_speed / (L1 + L2) frequency
lambdaL1mL2 = 0.86191840032201; % c_speed / (L1 - L2) frequency
secpmin = 60.;
secph = 3600.;
secpday = 86400.;
secpweek = 604800.;
secphday = 43200.;
secphweek = 302400.;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -