From 3ce928f865c05d710d7c071a80137a96b8d41eba Mon Sep 17 00:00:00 2001
From: Claudio <claudio.mandrioli@control.lth.se>
Date: Tue, 26 Feb 2019 17:13:42 +0100
Subject: [PATCH] introduced plot script for single trace simulations

---
 matlab/main_car.m     | 27 +--------------------------
 matlab/main_cycling.m | 27 +--------------------------
 2 files changed, 2 insertions(+), 52 deletions(-)

diff --git a/matlab/main_car.m b/matlab/main_car.m
index 646b88f..ac57c2b 100644
--- a/matlab/main_car.m
+++ b/matlab/main_car.m
@@ -18,29 +18,4 @@ out_data=GPSaidedINS_car(in_data,settings);
 
 %% Plot the data 
 disp('Plot data')
-%overall error
-out_data.error
-%plot_data(in_data,out_data,'True');drawnow
-h=zeros(1,2);
-figure(2)
-plot(in_data.GNSS.pos_ned(2,:),in_data.GNSS.pos_ned(1,:),'b-');
-%plot(out_data.x_h(2,:),out_data.x_h(1,:),'r-');
-hold on
-h(1)=plot(in_data.GNSS.pos_ned(2,:),in_data.GNSS.pos_ned(1,:),'b.');
-h(2)=plot(out_data.x_h(2,:),out_data.x_h(1,:),'-');
-%h(3)=plot(in_data.GNSS.pos_ned(2,1),in_data.GNSS.pos_ned(1,1),'ks');
-title('Trajectory')
-ylabel('North [m]')
-xlabel('East [m]')
-legend(h,'GNSS position estimate','GNSS aided INS trajectory')%,'Start point')
-axis equal
-grid on
-
-%plot control signal P and control action turn
-h=zeros(1,2);
-figure(3)
-hold on
-h(1)=plot(out_data.P_store);
-h(2)=plot(out_data.turn);
-legend(h,'sum of the trace of P','antenna turned ON')
-grid on
\ No newline at end of file
+plot_data
\ No newline at end of file
diff --git a/matlab/main_cycling.m b/matlab/main_cycling.m
index c3cffa9..1d21fce 100644
--- a/matlab/main_cycling.m
+++ b/matlab/main_cycling.m
@@ -18,29 +18,4 @@ out_data=GPSaidedINS_cycling(in_data,settings);
 
 %% Plot the data 
 disp('Plot data')
-%overall error
-out_data.error
-%plot_data(in_data,out_data,'True');drawnow
-h=zeros(1,2);
-figure(2)
-plot(in_data.GNSS.pos_ned(2,:),in_data.GNSS.pos_ned(1,:),'b-');
-%plot(out_data.x_h(2,:),out_data.x_h(1,:),'r-');
-hold on
-h(1)=plot(in_data.GNSS.pos_ned(2,:),in_data.GNSS.pos_ned(1,:),'b.');
-h(2)=plot(out_data.x_h(2,:),out_data.x_h(1,:),'-');
-%h(3)=plot(in_data.GNSS.pos_ned(2,1),in_data.GNSS.pos_ned(1,1),'ks');
-title('Trajectory')
-ylabel('North [m]')
-xlabel('East [m]')
-legend(h,'GNSS position estimate','GNSS aided INS trajectory')%,'Start point')
-axis equal
-grid on
-
-%plot control signal P and control action turn
-h=zeros(1,2);
-figure(3)
-hold on
-h(1)=plot(out_data.P_store);
-h(2)=plot(out_data.turn);
-legend(h,'sum of the trace of P','antenna turned ON')
-grid on
\ No newline at end of file
+plot_data
-- 
GitLab