%==============================================================================%
%                                                                              %
%   GPS Software Receiver in Matlab                                            %
%   Signal Acquisition by FFT Processing                                       %
%   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_Acquisition_Interface.m'); catch; end;"
%}
%                                                                              %
%% -- NOTES ----------------------------------------------------------------
%                                                                              %
%   GPS signal acquisition via FFT-based multi-millisecond coherent            %
%   integration followed by multi-second non-coherent accumulation.            %
%                                                                              %
%   Usage:                                                                     %
%       1.  change pathName & fileName to point to input data                  %
%       2.  define signal characteristics in "settings" file                   %
%       3.  set 'signalType' parameter as required                             %
%       4.  run code, which generates/saves 'acqResults' structure             %
%                                                                              %
%   Assumptions:                                                               %
%       1.  high-sensitivity desired                                           %
%       2.  may have Doppler estimate                                          %
%       3.  lots of CPU time                                                   %
%       4.  lots of memory                                                     %
%       5.  not time-critical or real-time                                     %
%       6.  quartz oscillator (doesn't leverage OCXO or TCXO)                  %
%       7.  no nav. bit alignment or nav. sequence knowledge                   %
%                                                                              %
%% ============================================================================%
%                       GPS Software Receiver in Matlab                        %
%     Copyright (c) 2003-2017 David S. De Lorenzo / 2018-2023 Trimble Inc.     %
%==============================================================================%

% function Simple_Acquisition_Interface(pathName, fileName, signalType)
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 = 'L1-C/A';

pathName = 'C:\DATA\MATLAB_Signal_Simulator';
fileName = 'delete_me';
signalType = 'L1-C/A';

acquisitionEntryPoint( pathName, fileName, signalType );

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