forked from mfkiwl/GNSS_SDR_GPSGalileo_MPDD_SQI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RAIM_Execution.m
executable file
·21 lines (19 loc) · 1.03 KB
/
RAIM_Execution.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function RAIM_Execution(TGlobalTest,TlocalTest,GlobalThres,unreliableSol,settings,navSolutions)
figure
subplot(211)
timeaus=([0:length(navSolutions.E(end,:))-1]+floor(settings.msToProcess/settings.navSolPeriod-length(navSolutions.E(end,:))))*settings.navSolPeriod/1e3;
%timeaus=[1:length(TGlobalTest)];
plot(timeaus,ones(size(1:length(TGlobalTest)))*GlobalThres,'--',timeaus,TGlobalTest,'.','MarkerSize',10,'LineWidth',2),
grid minor, title('Global Test results'),
legend('Global test threshold','Global test statistic')%,'Unreliable solution'),
xlabel('Time [s]')
% ,timeaus(unreliableSol),TGlobalTest(unreliableSol),'ko'
subplot(212)
plot(timeaus(TGlobalTest>GlobalThres),TlocalTest(TGlobalTest>GlobalThres),'.',...
timeaus,ones(size(timeaus))*norminv(1-settings.RAIM.PfaLocal/2,0,1),'-.',...
timeaus(unreliableSol),TlocalTest(unreliableSol),'ko','MarkerSize',10,'LineWidth',2)
grid minor,
legend('Local Test statistic','Local test threshold','Unreliable solution'),
xlabel('Time [s]')
title('Local Test results')
end