From 5a7b2e81843c5b76bc8cf34ede225707696ce07f Mon Sep 17 00:00:00 2001 From: miguekf Date: Tue, 13 Dec 2022 00:07:55 +0100 Subject: [PATCH] MOD: improve matlab plot --- src/utils/matlab/vtl/vtl_general_plot.m | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/utils/matlab/vtl/vtl_general_plot.m b/src/utils/matlab/vtl/vtl_general_plot.m index 5b70e24bc..b6f964ae1 100644 --- a/src/utils/matlab/vtl/vtl_general_plot.m +++ b/src/utils/matlab/vtl/vtl_general_plot.m @@ -98,10 +98,10 @@ sgtitle('velocities') VTL_POS=figure('Name','VTL UTM COORD CENTERED IN 1^{ST} POSITION'); subplot(2,2,1); -plot(navSolution.X,'.'); +plot(navSolution.RX_time-navSolution.RX_time(1),navSolution.X,'.'); hold on;grid on -plot(corr_kf_state(1,3:end)) -% plot(refSolution.X,'.') +plot(navSolution.RX_time(3:end)-navSolution.RX_time(1),corr_kf_state(1,3:end)) +plot(refSolution.SIM_time/1000-TTFF_sec,refSolution.X,'.') ylabel('X (m)') xlabel('time U.A.') % ylim([-200 800]) @@ -109,10 +109,10 @@ title('Subplot 1: X ') legend ('raw navSolution','raw kf state','kferr','Location','eastoutside') subplot(2,2,2); -plot(navSolution.Y,'.'); +plot(navSolution.RX_time-navSolution.RX_time(1),navSolution.Y,'.'); hold on;grid on -plot(corr_kf_state(2,3:end)) -% plot(refSolution.Y,'.') +plot(navSolution.RX_time(3:end)-navSolution.RX_time(1),corr_kf_state(2,3:end)) +plot(refSolution.SIM_time/1000-TTFF_sec,refSolution.Y,'.') ylabel('Y (m)') xlabel('time U.A.') % ylim([-200 50]) @@ -120,10 +120,10 @@ title('Subplot 1: Y ') legend ('raw navSolution','raw kf state','kferr','Location','eastoutside') subplot(2,2,3); -plot(navSolution.Z,'.'); +plot(navSolution.RX_time-navSolution.RX_time(1),navSolution.Z,'.'); hold on;grid on -plot(corr_kf_state(3,3:end)) -% plot(refSolution.Z,'.') +plot(navSolution.RX_time(3:end)-navSolution.RX_time(1),corr_kf_state(3,3:end)) +plot(refSolution.SIM_time/1000-TTFF_sec,refSolution.Z,'.') ylabel('Z (m)') xlabel('time U.A.') % ylim([-350 50])