presets for FT23 with timestamps works now, save and FT24+25 not

This commit is contained in:
2025-08-22 16:07:56 +02:00
parent 0a7769f31f
commit 7650d02541
13 changed files with 88 additions and 78 deletions

View File

@ -1,4 +1,4 @@
function [outputArg] = plot_driver_statistics(panel, start, stop, pltData)
function [outputArg] = plot_driver_statistics(panel, pltData, tr)
% create tiledlayout (R2023a and newer)
tl = tiledlayout(panel,"vertical");
@ -7,13 +7,13 @@ function [outputArg] = plot_driver_statistics(panel, start, stop, pltData)
hold(ax1, "on")
grid(ax1, "on")
title(ax1, "speed [km/h]")
plot(ax1,pltData.xAxis(start:stop),pltData.speed_kph(start:stop))
plot(ax1,pltData.xAxis(tr,:),pltData.speed_kph(tr,:))
% plot 2: accelerator pedal position [%]
ax2 = nexttile(tl);
hold(ax2, "on")
grid(ax2, "on")
title(ax2, "APP [%]")
plot(ax2,pltData.xAxis(start:stop),pltData.app_percent(start:stop))
plot(ax2,pltData.xAxis(tr,:),pltData.app_percent(tr,:))
linkaxes([ax1, ax2],"x")
% plot 3: accelerator pedal position histogram
ax3 = nexttile(tl);
@ -22,7 +22,7 @@ function [outputArg] = plot_driver_statistics(panel, start, stop, pltData)
title(ax3, "APP distribution")
ylabel(ax3, "\sigma [%]")
xlabel(ax3, "APP [%]")
histogram(ax3,pltData.app_percent(start:stop),"Normalization","percentage")
histogram(ax3,pltData.app_percent(tr,:),"Normalization","percentage")
% plot 4: brake pressure histogram
ax4 = nexttile(tl);
hold(ax4, "on")
@ -30,7 +30,7 @@ function [outputArg] = plot_driver_statistics(panel, start, stop, pltData)
title(ax4, "BrakeP distribution")
ylabel(ax4, "\sigma [%]")
xlabel(ax4, "Brake Pressure Front [bar]")
histogram(ax4,pltData.brakePFront_bar(start:stop),"Normalization","percentage")
histogram(ax4,pltData.brakePFront_bar(tr,:),"Normalization","percentage")
% return null (not relevant for plots!)
outputArg = [];