% gieCfgScript.m
% 
% Put a copy of this configuration file in each directory containing 
% DAT files to analyze. Edit the copy to specify all the file names,
% start and stop times of Loop L, and any other events. 
% 
% A sample set is contained in this file. Note that this is a script,
% not a function, and it is called from within the function
% gieTestSetup.m 
% 
% Vivek Nadkarni
% December 1, 2004
% Trimble

% Directory in which DAT files are kept
directoryname = ...
  'C:\Vivek\Data\Survey\gieAnalysis\2004-11-30-ats\';

% Names of the three DAT files (parkinglot)
fileNames{BASE} = 'geqa1224336'; % GEQA
fileNames{ROVER} = 'rov51483360';
fileNames{GIE} = 'gie00013360';

% The type of analysis being run. For 'dynamic', rkwin is used to 
% create the reference trajectory. 
% surveyType = 'dynamic'; 
% surveyType = 'static'; 
% surveyType = 'survey'; 
% surveyType = 'mpos'; 
surveyType = 'ats'; 

atsFileName = 'ATS\ATStraj_XYZ.txt';
mposFileName = 'MPOS\mposLLA_NEDT.txt'; 

% Surveyed in position of the BASE station. 
% Position of GEQA
surveyPos(BASE,:) = [-2691552.7069 -4301178.8349 3851750.7969]; % GEQA

% Position of SUNN
% surveyPos(BASE,:) = [-2691521.2804 -4301170.7738 3851781.4608]; % SUNN

 
%    If the surveyType = 'survey' then the surveyPos(ROVER,:) should 
% be the surveyed position of the rover. Specifically the baseline 
% (i.e. difference) between the BASE and the ROVER positions defined 
% by these two surveyed positions should be accurate, even if the 
% actual positions are not accurate. 
%    For other surveyTypes, e.g. 'dynamic' and 'static', the 
% surveyPos(BASE,:) and surveyPos(ROVER,:) should be "close" to the 
% base and rover positions respectively, i.e. say within a hundred 
% meters. This is because we use the rtk engine to generate the 
% baseline between the rover and the base, which is used for
% the rest of the analysis. 

% Position "close" to the ROVER. Here we use the actual position of 
% GEQA as a seed position. 
surveyPos(ROVER,:) = [-2691552.7069 -4301178.8349 3851750.7969]; % GEQA

% GPS sample time in seconds
Ts = 1; 

% Set of SVS that you don't want to have used as the reference SV. 
% Typically your Loop L SVs should be on the purge list. 
purgeSvList = [6,17];

% Set of SVS from which to choose the reference SV. Typically the 
% remaining SVS are on the useSvList. 
useSvList = 1:32; 

% Manual Specification of Loop L information -- leave these empty if
% you are using a gielog_switch.txt file to load these data
% automatically. 
% Times at which Phase Locked Loop L started and ended. The time is 
% measured in gps seconds. These times can be obatained from the 
% gie logfiles. 
svLoopL     = []; 
tStartLoopL = [];
tEndLoopL   = []; 

% Manual Specification of Frequency Error information -- leave these
% empty if you are using a gielog_freq.txt file to load these data
% automatically. 
% Times and descriptions of events that occurred during the run. 
% The times are in gps seconds, and the descriptions are cell
% strings. Note that if there are no events, then the variables
% should be empty matrices. 
svEvent   = [];
tEvent    = [] ;
descEvent = {}; 

