diff --git a/Footwear Test methodsfor wholeshoe Slipresistanceperformance/ViewModels/MainWindowViewModel.cs b/Footwear Test methodsfor wholeshoe Slipresistanceperformance/ViewModels/MainWindowViewModel.cs index 639fe88..8a9f2b7 100644 --- a/Footwear Test methodsfor wholeshoe Slipresistanceperformance/ViewModels/MainWindowViewModel.cs +++ b/Footwear Test methodsfor wholeshoe Slipresistanceperformance/ViewModels/MainWindowViewModel.cs @@ -410,6 +410,7 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.ViewModel return; } + var actualLoadForReport = FormatActualLoad(points); var report = new SlipReportExport( TestNumber, OperatorName, @@ -421,7 +422,7 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.ViewModel CurrentMode(), CurrentSurface(), TargetLoadText, - ActualLoadText, + actualLoadForReport, TestSpeedText, StandardReference, Samples.ToList(), @@ -1199,6 +1200,12 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.ViewModel ? Math.Max(1, targetLoad * MinimumAnalysisLoadRatio) : 1; + private static string FormatActualLoad(IReadOnlyList points) + { + var actualLoad = points.Average(point => point.VerticalLoadN); + return $"{actualLoad.ToString("F1", CultureInfo.InvariantCulture)} N"; + } + private static bool TryParseLoadValue(string value, out double load) { var numeric = new string(value