From b2d2e9fc892984330a1bcd2574f755e3ba1f2265 Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Sun, 27 May 2018 13:56:32 +0200 Subject: Fix: Leave VO2max computation to fit4ruby library. This will result in slightly lower but probably more accurate VO2max values (accurate as reported by the device). --- lib/postrunner/UserProfileView.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/postrunner/UserProfileView.rb b/lib/postrunner/UserProfileView.rb index e75ce18..a224277 100644 --- a/lib/postrunner/UserProfileView.rb +++ b/lib/postrunner/UserProfileView.rb @@ -74,7 +74,9 @@ module PostRunner end if (metmax = user_data.metmax) t.row([ 'METmax:', "#{metmax} MET" ]) - t.row([ 'VO2max:', "#{'%.1f' % (metmax * 3.5)} ml/kg/min" ]) + end + if (vo2max = @fit_activity.vo2max) + t.row([ 'VO2max:', "#{'%.1f' % vo2max} ml/kg/min" ]) end t end -- cgit v1.2.3