close all
clear
clc
vehiclePath = uigetdir('','Select Vehicle Data Directory');
pathContents = dir(vehiclePath);
folders = pathContents(~ismember({pathContents.name},{'.','..','4WD -insert mode name-'}));
dirFlags = [folders.isdir];
subFolders = folders(dirFlags);
modeList = {subFolders.name};
clearvars pathContents folders dirFlags
variantList = {'Booster','Twinster'};
testList = {'VVT_001 Path Deviation',...
'VVT_002 High Mu CRAM',...
'VVT_003 High Mu Acceleration',...
'VVT_004 Torque Steer Evaluation',...
'VVT_005 Undefined',...
'VVT_006 Sine Steer',...
'VVT_007 High Mu AIT 90deg',...
'VVT_008 High Mu AIT 45deg',...
'VVT_009 Low Mu Acceleration',...
'VVT_010 Low Mu Tip-In 50kph',...
'VVT_011 Low Mu Tip-In 100kph',...
'VVT_012 AWD Response Time',...
'VVT_013 Level MuSplit',...
'VVT_014 Level MuStep',...
'VVT_015 10% MuSplit Grade',...
'VVT_016 15% MuSplit Grade',...
'VVT_017 20% MuSplit Grade',...
'VVT_018 30% MuSplit Grade',...
'VVT_019 Micro MuSplit 50% Throttle Tip-In',...
'VVT_020 Micro MuSplit WOT Tip-In',...
'VVT_021 Low Mu CRAM',...
'VVT_022 Small Ice Circle AIT',...
'VVT_023 Small Ice Circle DTIT',...
'VVT_024 Small Snow Circle AIT',...
'VVT_025 Small Snow Circle DTIT',...
'VVT_026 Large Ice Circle AIT',...
'VVT_027 Large Ice Circle DTIT',...
'VVT_028 Large Snow Circle AIT',...
'VVT_029 Large Snow Circle DTIT'};
[variant,TF] = listdlg('ListString',variantList,'ListSize',[220,100],'Name','Select Variant','SelectionMode','Single');
if TF == 0
Err = errordlg('No Variant Selected','Analysis Canceled');
set(Err,'Position',[600 600 200 60]);
return
else
end
drivelineConfig = variantList{variant};
clearvars TF
[test,tf] = listdlg('ListString',testList,'ListSize',[300 600],'Name','Select Comparison Maneuver','SelectionMode','Single');
if tf == 0
err = errordlg('No Analysis Selected','Analysis Canceled');
set(err,'Position',[600 600 200 60]);
return
else
end
selectedTest = testList{test};
clearvars tf