I'm trying to add a metric for an estimated VO2max score for a ride as per: https://alancouzens.com/blog/VO2Scores.htmlI'm only getting zeroes in the metrics CSV file so I have clearly gone wrong somewhere. Any tips on how to get this working would be greatly appreciated.
I have it working now.
# only calculate for rides that contain power and heart rate
relevant {(isRide) && Data contains "P" && Data contains "H"; Time_Moving > 2700;}
I just changed it to this:# only calculate for rides that contain power and heart rate
relevant {(isRide) && Data contains "P" && Data contains "H"; Time_Moving > 2700;}
{
# only calculate for rides that contain power and heart rate
relevant {(isRide) && Data contains "P" && Data contains "H" && Time_Moving > 1800 && aPower_Relative_Intensity > 0.5;}
# calculate metric value at end
value {
(xPower/75*1000/Athlete_Weight/((Average_Heart_Rate-config(rhr))/(config(maxhr)-config(rhr))));
}
}