Skip to content
Snippets Groups Projects
Commit 92f7e7ef authored by Marco Marchesi's avatar Marco Marchesi
Browse files

added recursive submodule automation

parent 857269d4
Branches
No related tags found
No related merge requests found
...@@ -2,7 +2,9 @@ clear; close all; clc; ...@@ -2,7 +2,9 @@ clear; close all; clc;
addpath(genpath('../commonFunctions/')) addpath(genpath('../commonFunctions/'))
addpath('../RCS/Functions&Files/') addpath('../RCS/Functions&Files/')
checkSubmodules;
addpath('../../../general-utilities/') addpath('../../../general-utilities/')
%% import data from logs %% import data from logs
% import and parse data % import and parse data
......
...@@ -99,15 +99,14 @@ exportStandardizedFigure(gcf, 'Expulsion zoom',textDim, 'addMarkers',false,'chan ...@@ -99,15 +99,14 @@ exportStandardizedFigure(gcf, 'Expulsion zoom',textDim, 'addMarkers',false,'chan
yyaxis right yyaxis right
plot(RIG.TARSData(:,1),RIG.TARSData(:,4),'DisplayName','TARS Mass','Color','#D3212D') plot(RIG.TARSData(:,1),RIG.TARSData(:,4),'DisplayName','TARS Mass','Color','#D3212D')
xline(RIG.EVENTData(findEventIndex(RIG.EVENTData,2,'MOTOR_START_TARS',main.EVENTNames),1),'k--',"START TARS",'HandleVisibility','off') xline(RIG.EVENTData(findEventIndex(RIG.EVENTData,2,'MOTOR_START_TARS',main.EVENTNames),1),'k--',"START TARS",'HandleVisibility','off')
xline(RIG.EVENTData(findEventIndex(RIG.EVENTData,2,'TARS_PRESSURE_STABILIZED',main.EVENTNames),1),'--',"PRESSURE STABILIZED",'HandleVisibility','off','Color','#00A86B') % xline(RIG.EVENTData(findEventIndex(RIG.EVENTData,2,'TARS_PRESSURE_STABILIZED',main.EVENTNames),1),'--',"PRESSURE STABILIZED",'HandleVisibility','off','Color','#00A86B')
title('Pressure and Mass measures') title('Pressure and Mass measures')
xlabel('Time [s]') xlabel('Time [s]')
ylabel('Mass [kg]') ylabel('Mass [kg]')
set(gca,"YColor",'#D3212D') set(gca,"YColor",'#D3212D')
xlim([-1180,-900]) xlim([-1160,-1000])
legend legend
exportStandardizedFigure(gcf, 'TARS pressure mass',textDim, 'addMarkers',false,'changeColors',false) exportStandardizedFigure(gcf, 'TARS pressure mass',textDim, 'addMarkers',false,'changeColors',false,'overwriteFigure',true)
figure figure
yyaxis left yyaxis left
...@@ -120,14 +119,14 @@ exportStandardizedFigure(gcf, 'Expulsion zoom',textDim, 'addMarkers',false,'chan ...@@ -120,14 +119,14 @@ exportStandardizedFigure(gcf, 'Expulsion zoom',textDim, 'addMarkers',false,'chan
yyaxis right yyaxis right
stairs(RIG.ventValve(:,1),RIG.ventValve(:,2)*100,'DisplayName','Venting Valve Position','Color','#D3212D') stairs(RIG.ventValve(:,1),RIG.ventValve(:,2)*100,'DisplayName','Venting Valve Position','Color','#D3212D')
xline(RIG.EVENTData(findEventIndex(RIG.EVENTData,2,'MOTOR_START_TARS',main.EVENTNames),1),'k--',"START TARS",'HandleVisibility','off') xline(RIG.EVENTData(findEventIndex(RIG.EVENTData,2,'MOTOR_START_TARS',main.EVENTNames),1),'k--',"START TARS",'HandleVisibility','off')
xline(RIG.EVENTData(findEventIndex(RIG.EVENTData,2,'TARS_PRESSURE_STABILIZED',main.EVENTNames),1),'--',"PRESSURE STABILIZED",'HandleVisibility','off','Color','#00A86B') % xline(RIG.EVENTData(findEventIndex(RIG.EVENTData,2,'TARS_PRESSURE_STABILIZED',main.EVENTNames),1),'--',"PRESSURE STABILIZED",'HandleVisibility','off','Color','#00A86B')
ylabel('Valve Position [%]') ylabel('Valve Position [\%]')
xlabel('Time [s]') xlabel('Time [s]')
legend legend
set(gca,"YColor",'#D3212D') set(gca,"YColor",'#D3212D')
xlim([-1180,-900]) xlim([-1160,-1000])
title('Mass finite difference vs venting valve') title('Mass finite difference vs venting valve')
exportStandardizedFigure(gcf, 'TARS mass offset',textDim, 'addMarkers',false,'changeColors',false) exportStandardizedFigure(gcf, 'TARS mass offset',textDim, 'addMarkers',false,'changeColors',false,'overwriteFigure',true)
% % % commento: non abbiamo lasciato che TARS finisse, ma abbiamo stoppato % % % commento: non abbiamo lasciato che TARS finisse, ma abbiamo stoppato
% % % noi perché abbiamo visto fase liquida. Probabilmente si % % % noi perché abbiamo visto fase liquida. Probabilmente si
......
currentPath = pwd;
localRepoPath_generalUtilities = '../../../general-utilities/';
if ~exist([localRepoPath_generalUtilities,'exportStandardizedFigure'],'file')
% clone repo
answer = input('WARNING! You don''have the exportStandardizedFigure installed. Do you want to install it? (recommended) (y/n)','s');
if answer == "y" || answer == "yes"
cloneType = input('Which type of clone do you want to use? (SSH/HTTP) ','s');
if cloneType =="SSH" || cloneType == "ssh"
mkdir(localRepoPath_generalUtilities)
system(['git submodule add "git@git.skywarder.eu:skyward/general-utilities.git" ',localRepoPath_generalUtilities])
elseif cloneType == "HTTP" || cloneType == "http"
mkdir(localRepoPath_generalUtilities)
system(['git submodule add "https://git.skywarder.eu/skyward/general-utilities.git" ',localRepoPath_generalUtilities])
else
fprintf('\n WARNING! Input not valid: aborting')
return
end
end
else
answer_pull = input('Do you want to update the graphics submodule? (y/n)','s');
if answer_pull == "yes" || answer_pull == "y"
system('git submodule update --recursive')
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment