%==============================================================================%
%                                                                              %
%   GPS Software Receiver in Matlab                                            %
%   Signal Tracking - FLL/PLL and DLL                                          %
%   David S. De Lorenzo                                                        %
%   01 November 2005                                                           %
%                                                                              %
%  To run this headless from a windows command prompt (not PowerShell):        %
%{
    matlab -nodesktop -nosplash -noFigureWindows -r "try; run('C:\Users\ddelore\OneDrive - Trimble Inc\Documents\MATLAB\Code\GPS_SwRcvr\Simple_Tracking_Interface.m'); catch; end; quit"
%}
%                                                                              %
%% -- NOTES ----------------------------------------------------------------
%                                                                              %
%   GPS code and carrier tracking via FLL/PLL and DLL.                         %
%                                                                              %
%   Usage:                                                                     %
%       1.  change pathName & fileName to point to input data                  %
%       2.  define signal characteristics in "settings" file                   %
%       3.  run code, which generates/saves 'trackResults' structure           %
%                                                                              %
%   Assumptions:                                                               %
%       1.  initial estimates from acquisition module                          %
%       2.  moderately strong signals (final coherent integration 20ms)        %
%       3.  not time-critical or real-time                                     %
%       4.  no signal re-acquisition or loss-of-lock detector                  %
%       5.  no interference or multipath mitigation                            %
%       6.  hard-coded tracking mode transitions:                              %
%             pull-in --> transition --> fine-tracking                         %
%                                                                              %
%% ============================================================================%
%                       GPS Software Receiver in Matlab                        %
%     Copyright (c) 2003-2017 David S. De Lorenzo / 2018-2023 Trimble Inc.     %
%==============================================================================%
%#ok<*AGROW,*NODEF>
% function [cno,tau] = Simple_Tracking_Interface(pathName, fileName)
home
clear
fclose('all');
path(pathdef);
addpath(fullfile(pwd, 'Library_Acquisition'));
addpath(fullfile(pwd, 'Library_Tracking'));
addpath(fullfile(pwd, 'Library_Misc'));

% pathName = 'TestData_working_copy';
% fileName = 'TestDataFile';
% signalType is referenced from acquisition

pathName = 'C:\DATA\MATLAB_Signal_Simulator';
fileName = 'delete_me';
% signalType is referenced from acquisition

trackingEntryPoint( pathName, fileName);

return
%===============================================================================