forked from berrystruction/GNSS_SDR_GPSGalileo_MPDD_SQI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtrackcarrFLL.m
executable file
·39 lines (27 loc) · 1.2 KB
/
trackcarrFLL.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
function [FLLres]=trackcarrFLL(fid,acqResults,settings,PRN)
% FLLres.StatusFLL= zeros(1,32);
% FLLres.cnt_skp= zeros(1,32);
% FLLres.doppler_estFLL= zeros(1,32);
% FLLres.phaseFLL= zeros(1,32);
% FLLres.seeksec_corr= zeros(1,32);
%for PRN = settings.acqSatelliteList
if acqResults.peakMetric(PRN) >= settings.acqThreshold %acqResults.carrFreq(PRN)~=0
code_phase=acqResults.codePhase(PRN);
doppler_est=acqResults.carrFreq(PRN);
[StatusFLL,cnt_skp,doppler_estFLL,code_phaseFLL] = trackcarrFLL_DLL(fid,settings,code_phase,doppler_est,PRN);
fprintf('IF Doppler [Hz]: %d \n',doppler_estFLL-settings.IF);
%settings.seek_sec=settings.seek_sec+(code_phaseFLL/settings.samplingFreq-settings.seek_sec);
FLLres.StatusFLL=StatusFLL;
FLLres.cnt_skp=cnt_skp;
FLLres.doppler_estFLL=doppler_estFLL;
FLLres.phaseFLL=code_phaseFLL;
FLLres.seeksec_corr=code_phaseFLL/settings.samplingFreq-settings.seek_sec;
else
FLLres.StatusFLL=0;
FLLres.cnt_skp=-1;
FLLres.doppler_estFLL=-1;
FLLres.phaseFLL=-1;
FLLres.seeksec_corr=-1;
end
%end
end