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_brakes(panel, start, stop, pltData)
function [outputArg] = plot_brakes(panel, pltData, tr)
% create tiledlayout (R2023a and newer)
tl = tiledlayout(panel,"vertical");
@ -7,15 +7,15 @@ function [outputArg] = plot_brakes(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: brake pressure front/rear [bar]
ax2 = nexttile(tl);
hold(ax2, "on")
grid(ax2, "on")
title(ax2, "Brake Pressure F/R [bar]")
plot(ax2,pltData.xAxis(start:stop),pltData.brakePFront_bar(start:stop))
plot(ax2,pltData.xAxis(start:stop),pltData.brakePRear_bar(start:stop))
plot(ax2,pltData.xAxis(tr,:),pltData.brakePFront_bar(tr,:))
plot(ax2,pltData.xAxis(tr,:),pltData.brakePRear_bar(tr,:))
legend(ax2, "Front", "Rear")
% plot 3: longitudinal acceleration [g]
@ -23,17 +23,17 @@ function [outputArg] = plot_brakes(panel, start, stop, pltData)
hold(ax3, "on")
grid(ax3, "on")
title(ax3, "Long Acc [g]")
plot(ax3,pltData.xAxis(start:stop),pltData.acc_long_g(start:stop))
plot(ax3,pltData.xAxis(tr,:),pltData.acc_long_g(tr,:))
% plot 4: Brake Temp [°C]
ax4 = nexttile(tl);
hold(ax4, "on")
grid(ax4, "on")
title(ax4, "Brake Temp [°C]")
plot(ax4,pltData.xAxis(start:stop),pltData.brakeTFrontLeft_degC(start:stop))
plot(ax4,pltData.xAxis(start:stop),pltData.brakeTFrontRight_degC(start:stop))
plot(ax4,pltData.xAxis(start:stop),pltData.brakeTRearLeft_degC(start:stop))
plot(ax4,pltData.xAxis(start:stop),pltData.brakeTRearRight_degC(start:stop))
plot(ax4,pltData.xAxis(tr,:),pltData.brakeTFrontLeft_degC(tr,:))
plot(ax4,pltData.xAxis(tr,:),pltData.brakeTFrontRight_degC(tr,:))
plot(ax4,pltData.xAxis(tr,:),pltData.brakeTRearLeft_degC(tr,:))
plot(ax4,pltData.xAxis(tr,:),pltData.brakeTRearRight_degC(tr,:))
legend(ax4, "FL", "FR", "RL", "RR")
% plot 5: brake bias [%]
@ -41,7 +41,7 @@ function [outputArg] = plot_brakes(panel, start, stop, pltData)
hold(ax5, "on")
grid(ax5, "on")
title(ax5, "Brake Bias [%]")
plot(ax5,pltData.xAxis(start:stop),pltData.brakeBias_perc(start:stop))
plot(ax5,pltData.xAxis(tr,:),pltData.brakeBias_perc(tr,:))
% link all x axes
linkaxes([ax1, ax2, ax3, ax4, ax5],"x")