update FT24 presets
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
function [sidebarLabel] = sidebar_stats(pltData)
|
||||
function [sidebarLabel] = sidebar_stats(stats)
|
||||
%SIDEBAR_STATS Summary of this function goes here
|
||||
% Detailed explanation goes here
|
||||
sidebarLabel = sprintf(...
|
||||
@ -9,13 +9,13 @@ function [sidebarLabel] = sidebar_stats(pltData)
|
||||
" Peak (mean): %1.f kW\n" + ...
|
||||
"\nDistance: %.2f km\n" + ...
|
||||
"\nTopspeed: %.1f km/h\n", ...
|
||||
pltData.energy_used_kwh, ...
|
||||
pltData.energy_regen_kwh, ...
|
||||
pltData.energy_kwh, ...
|
||||
pltData.peakPower_kw, ...
|
||||
pltData.peakPowerMean_kw, ...
|
||||
pltData.distanceTotal_km, ...
|
||||
pltData.maxSpeed_kph ...
|
||||
stats.energy_used_kwh, ...
|
||||
stats.energy_regen_kwh, ...
|
||||
stats.energy_kwh, ...
|
||||
stats.peakPower_kw, ...
|
||||
stats.peakPowerMean_kw, ...
|
||||
stats.distanceTotal_km, ...
|
||||
stats.maxSpeed_kph ...
|
||||
);
|
||||
end
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ function [pltData, stats] = sortdata(data)
|
||||
time_s = time_s - time_s(1); % set beginning of session to 0
|
||||
|
||||
% x-Axis:
|
||||
pltData.time_s = time_s -time_s(1);
|
||||
pltData.time_s = time_s;
|
||||
pltData.time_hms = time_hms;
|
||||
|
||||
% distance calculation
|
||||
@ -14,12 +14,12 @@ function [pltData, stats] = sortdata(data)
|
||||
for i = 2:length(speed_mps)
|
||||
pltData.distance(i) = speed_mps(i)*(time_s(i)-time_s(i-1)) + pltData.distance(i-1);
|
||||
end
|
||||
pltData.distance = pltData.distance.'
|
||||
pltData.distance = pltData.distance.';
|
||||
pltData.xAxis = pltData.time_s; % set time as default x-Axis for plotting
|
||||
|
||||
%% Misc
|
||||
pltData.app_percent = data.ABX_Driver_ABX_APPS_percent;
|
||||
pltData.speed_kph = 3.6*movmean(data.ABX_Driver_ABX_Speed,50); % same filter as for distance calculation ???
|
||||
pltData.speed_kph = 3.6*movmean(data.ABX_Driver_ABX_Speed,50); % same fi.'lter as for distance calculation ???
|
||||
pltData.steering_deg = data.ABX_Driver_ABX_Steering_Angle;
|
||||
|
||||
%% AMS:
|
||||
|
||||
Reference in New Issue
Block a user