Commit f3feffa7 authored by Claudio Mandrioli's avatar Claudio Mandrioli
Browse files

removed unused script for energy-accuracy trafedoff simulations

parent 2b94477b
%"monteCarlo" example
%% Load data
disp('Loads data')
load('GNSSaidedINS_data.mat');
%% Load filter settings
disp('Loads settings')
settings=get_settings();
settings.P_treshold=0.1;
% %run first simulation
% out_data=GPSaidedINS(in_data,settings);
% energy=out_data.energy;
% error=out_data.error;
figure(4)
hold on
grid
color=[[0.7,0.0,0.0];[0.0,0.7,0.0];[0.7,0.0,0.7];[0.0,0.0,0.7]];
j=1;
for P_treshold=[2.0,4.0,6.0,8.0]%[2.3,2.8,3.3,3.8,4.3,4.8,5.3,5.8,6.3,6.8,7.3]
clear energy error
settings.P_treshold=P_treshold;
%run first simulation
out_data=GPSaidedINS(in_data,settings);
energy=out_data.energy;
error=out_data.error;
% energy=[energy,out_data.energy];
% error=[error,out_data.error];
%run more simulations
for k=1:10
%% Run the GNSS-aided INS
disp('Running the GNSS-aided INS')
P_treshold
k
out_data=GPSaidedINS(in_data,settings);
energy=[energy,out_data.energy];
error=[error,out_data.error];
end
%plot data
scatter(energy, error,40,color(j,:),'o','filled')
xlabel('energy')
ylabel('error')
%title(['P treshold = ', num2str(P_treshold)])
grid
j=j+1;
end
% %plot data
% figure(2)
% scatter(energy, error)
% xlabel('energy')
% ylabel('error')
% grid
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment