Skip to content
Snippets Groups Projects
Verified Commit 0e07429d authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

fix(process): add missing field

parent b6dd272b
No related branches found
No related tags found
No related merge requests found
......@@ -64,11 +64,11 @@ function ExpData = processall(idFile)
[arduShort, ~] = loadardu(ExpData(iTest).arduFile);
% DEBUG
figure;
hold on;
plot(tunnelData(:, 1));
plot(tunnelData(:, 3));
grid on;
% figure;
% hold on;
% plot(tunnelData(:, 1));
% plot(tunnelData(:, 3));
% grid on;
[arduShort, tunnelData, ExpData(iTest).arduStart, ExpData(iTest).tunnelStart] = ...
syncdata(arduShort, tunnelData);
......@@ -77,6 +77,7 @@ function ExpData = processall(idFile)
ExpData(iTest).time = arduShort(:, 1);
ExpData(iTest).Front.angles = arduShort(:, 2);
ExpData(iTest).Front.power = arduShort(:, 4);
ExpData(iTest).Aft.angles = arduShort(:, 3);
ExpData(iTest).Aft.power = arduShort(:, 5);
else
......@@ -108,7 +109,12 @@ function ExpData = processall(idFile)
ExpData(iTest).Testcase.press = idTable(iTest, :).pres_air;
if PLOT_CLEANED
plottime(ExpData(iTest), 'arduShort', false);
figure;
hold on;
plot(ExpData(iTest).Front.angles);
yyaxis right;
plot(ExpData(iTest).Front.forces(:, 3));
end
% Save the cleaned data
......
......@@ -33,9 +33,10 @@ function ResData = resultsanalysis(matFiles)
end
% Remove useless data
ResData = rmfield(ResData, {'arduStart', 'tunnelStart'}); % Useless
% FIXME: remove deprecated
ResData = rmfield(ResData, {'arduFile', 'tunnelFile', ...
'dx', 'airspeed', 'freq', 'front', 'aft'});
'dx', 'airspeed', 'freq'});
% Cache values to prevent excessive reloads
matFiles_ = matFiles;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment