From ce7e881957edcb12360265b28e136fd2870737da Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Tue, 7 Jan 2014 16:20:23 +0000 Subject: [PATCH] Fixed Estimated VO2MAX metric .. to use latest ACSM formula. .. see: http://blue.utb.edu/mbailey/handouts/pdf/MetCalnew.pdf --- src/DBAccess.cpp | 1 + src/WattsPerKilogram.cpp | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/DBAccess.cpp b/src/DBAccess.cpp index a52c5575d..c99e7e0be 100644 --- a/src/DBAccess.cpp +++ b/src/DBAccess.cpp @@ -72,6 +72,7 @@ // 51 05 Nov 2013 Mark Liversedge Added average aPower // 52 05 Nov 2013 Mark Liversedge Added EOA - Effect of Altitude // 53 18 Dec 2013 Mark Liversedge Added Fatigue Index (for power) +// 54 07 Jan 2014 Mark Liversedge Revised Estimated VO2MAX metric formula int DBSchemaVersion = 53; diff --git a/src/WattsPerKilogram.cpp b/src/WattsPerKilogram.cpp index 4efcba9e3..33718bc58 100644 --- a/src/WattsPerKilogram.cpp +++ b/src/WattsPerKilogram.cpp @@ -303,7 +303,11 @@ class Vo2max : public RideMetric { const Context *) { PeakWPK5m *wpk5m = dynamic_cast(deps.value("5m_peak_wpk")); - setValue(wpk5m->value(false) * 12 + 3.5); + + // Using New ACSM formula also outlined here: + // http://blue.utb.edu/mbailey/pdf/MetCalnew.pdf + // 10.8 * Watts / KG + 7 (3.5 per leg) + setValue(10.8 * wpk5m->value(false) + 7); setCount(1); } RideMetric *clone() const { return new Vo2max(*this); }