presets for FT23 with timestamps works now, save and FT24+25 not
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
function [outputArg] = plot_driver_general(panel, start, stop, pltData)
|
||||
function [outputArg] = plot_driver_general(panel, pltData, tr)
|
||||
% create tiledlayout (R2023a and newer)
|
||||
tl = tiledlayout(panel,"vertical");
|
||||
|
||||
@ -7,25 +7,25 @@ function [outputArg] = plot_driver_general(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,:))
|
||||
% plot 3: brake pressure front [bar]
|
||||
ax3 = nexttile(tl);
|
||||
hold(ax3, "on")
|
||||
grid(ax3, "on")
|
||||
title(ax3, "Brake Pressure Front [bar]")
|
||||
plot(ax3,pltData.xAxis(start:stop),pltData.brakePFront_bar(start:stop))
|
||||
plot(ax3,pltData.xAxis(tr,:),pltData.brakePFront_bar(tr,:))
|
||||
% plot 4: steering angle [°]
|
||||
ax4 = nexttile(tl);
|
||||
hold(ax4, "on")
|
||||
grid(ax4, "on")
|
||||
title(ax4, "Steering Angle [°]")
|
||||
plot(ax4,pltData.xAxis(start:stop),pltData.steering_deg(start:stop))
|
||||
plot(ax4,pltData.xAxis(tr,:),pltData.steering_deg(tr,:))
|
||||
% link all x axes
|
||||
linkaxes([ax1, ax2, ax3, ax4],"x")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user