www.pudn.com > GNSS_SDR.zip > init.asv, change:2010-04-01,size:3202b


% Main Function of Settings 
% includes:includes; geoFunctions 
%   subFunctions:    initSettings; probeData; p 
%-------------------------------------------------------------------------- 
%                           SoftGNSS v3.0 
%  
% Copyright (C) Darius Plausinaitis and Dennis M. Akos 
% Written by Darius Plausinaitis and Dennis M. Akos 
% 注释翻译:文立 
%-------------------------------------------------------------------------- 
%This program is free software; you can redistribute it and/or 
%modify it under the terms of the GNU General Public License 
%as published by the Free Software Foundation; either version 2 
%of the License, or (at your option) any later version. 
% 
%This program is distributed in the hope that it will be useful, 
%but WITHOUT ANY WARRANTY; without even the implied warranty of 
%MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
%GNU General Public License for more details. 
% 
%You should have received a copy of the GNU General Public License 
%along with this program; if not, write to the Free Software 
%Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
%USA. 
%程序为开源程序,请在开源协议规定范围内做改动 
%-------------------------------------------------------------------------- 
% 
%Script initializes settings and environment of the software receiver. 
%Then the processing is started. 
%开始运行前请确认环境和初始设置 
%-------------------------------------------------------------------------- 
% CVS record: 
% $Id: init.m,v 1.14.2.21 2006/08/22 13:46:00 dpl Exp $ 
 
%% Clean up the environment first 清空环境变量 ============================= 
clear; close all; clc; 
 
format ('compact'); 
format ('long', 'g'); 
 
%--- Include folders with functions 载入文件夹------------------------------ 
addpath include             % The software receiver functions 
addpath geoFunctions        % Position calculation related functions 
 
%% Print startup 开始信息(已修改) ========================================= 
fprintf(['\n',... 
    '欢迎使用softGNSS\n', ... 
    '第一版程序由 奥尔堡大学 丹麦GPS研究中心 开发\n', ... 
    '由 科罗拉多大学 GNSS研究室 修改\n',... 
    '由 香港理工大学 导航研究中心 汉化并修改\n',... 
    '本程序为开源程序,请在开源协议规定范围内做改动\n']); 
fprintf('-------------------------------\n'); 
 
%% Initialize constants, settings 初始设置载入 ============================= 
settings = initSettings(); 
 
%% Generate plot of raw data and ask if ready to start processing ========= 
%% 绘出原始数据信息 ======================================================== 
try 
    fprintf('Probing data (%s)...\n', settings.fileName) 
    probeData(settings); 
catch 
    % There was an error, print it and exit 
    % 出错退出 
    errStruct = lasterror; 
    disp(errStruct.message); 
    disp(' '); 
    disp('(请运行setSettings或者修改"initSettings.m"重新设置)')     
    return; 
end 
     
disp('原始中频信息已绘出!') 
disp('(如需修改,请运行setSettings或者修改"initSettings.m"重新设置)') 
disp(' '); 
gnssStart = input('输入‘1’开始运行,输入其他退出程序 : '); 
 
if (gnssStart == 1) 
    disp(' '); 
    % start things rolling... 
    % 开始运行... 
    postProcessing 
end