mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
@@ -666,7 +666,8 @@ MeanMaxComputer::run()
|
||||
|
||||
// NOTE: It is 360 not 3600 because Altitude is factored for decimal places
|
||||
// since it is the base data series, but we are calculating VAM
|
||||
double vam = (((data.points[i].value - lastAlt) * 360)/ride->recIntSecs());
|
||||
// And we multiply by 10 at the end!
|
||||
double vam = (((data.points[i].value - lastAlt) * 360)/ride->recIntSecs()) * 10;
|
||||
if (vam < 0) vam = 0;
|
||||
lastAlt = data.points[i].value;
|
||||
data.points[i].value = vam;
|
||||
|
||||
@@ -38,7 +38,7 @@ typedef double data_t;
|
||||
// arrays when plotting CP curves and histograms. It is precoputed
|
||||
// to save time and cached in a file .cpx
|
||||
//
|
||||
static const unsigned int RideFileCacheVersion = 7;
|
||||
static const unsigned int RideFileCacheVersion = 8;
|
||||
// revision history:
|
||||
// version date description
|
||||
// 1 29-Apr-11 Initial - header, mean-max & distribution data blocks
|
||||
@@ -48,6 +48,7 @@ static const unsigned int RideFileCacheVersion = 7;
|
||||
// 5 18-Aug-11 Added VAM mean maximals
|
||||
// 6 27-Jun-12 Added W/kg mean maximals and distribution
|
||||
// 7 03-Dec-12 Fixed W/kg calculations!
|
||||
// 8 13-Feb-13 Fixed VAM calculations
|
||||
|
||||
// The cache file (.cpx) has a binary format:
|
||||
// 1 x Header data - describing the version and contents of the cache
|
||||
|
||||
Reference in New Issue
Block a user