Update: added plot_settings, integrated loadvector, added folders/files for future season preset selection
This commit is contained in:
24
season/FT24/plot_settings/plot_tires_firctionCircle.m
Normal file
24
season/FT24/plot_settings/plot_tires_firctionCircle.m
Normal file
@ -0,0 +1,24 @@
|
||||
function [outputArg] = plot_tires_firctionCircle(panel, selected_laps, pltData)
|
||||
% create tiledlayout (R2023a and newer)
|
||||
|
||||
tl = tiledlayout(panel,"flow");
|
||||
|
||||
ax1 = nexttile(tl);
|
||||
hold(ax1, "on")
|
||||
grid(ax1, "on")
|
||||
title(ax1, "Friction Circle")
|
||||
ylabel(ax1, "Longitudinal Acc [g]")
|
||||
xlabel(ax1, "Lateral Acc [g]")
|
||||
colors = colororder(ax1);
|
||||
for i = 1:length(selected_laps)
|
||||
plot(ax1,pltData(selected_laps(i)).acc_lat_g, ...
|
||||
pltData(selected_laps(i)).acc_long_g,"Color",colors(i,:))
|
||||
K = convhull(pltData(selected_laps(i)).acc_lat_g, pltData(selected_laps(i)).acc_long_g);
|
||||
plot(ax1,pltData(selected_laps(i)).acc_lat_g(K), ...
|
||||
pltData(selected_laps(i)).acc_long_g(K),"Color",colors(i,:),"LineStyle","--","LineWidth",2)
|
||||
end
|
||||
|
||||
% return null (not relevant for plots!)
|
||||
outputArg = [];
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user