{
# only calculate for rides containing power
relevant { Data contains "P"; }
# initialise aggregating variables
init { seconds <- 10; }
sample {
if (POWER > 100 and POWER < 200) {
seconds <- seconds + RECINTSECS;
}
}
# calculate metric value at end
value { seconds / 60; }
}
Type = sum
But it give me a flat chart in the trends after creating a new one for this metric.
Can you help me ?
Another question, what is the use of conversion factor, conversion sum and the test button ?
Thanks :-)
Hi,I woud like to add a metric that give time spent between two fixed power values, ie : [100,200]I've created à user defined metrics like that :{
# only calculate for rides containing power
relevant { Data contains "P"; }
# initialise aggregating variables
init { seconds <- 10; }
sample {
if (POWER > 100 and POWER < 200) {
seconds <- seconds + RECINTSECS;
}
}
# calculate metric value at end
value { seconds / 60; }
}
Type = sum
But it give me a flat chart in the trends after creating a new one for this metric.
Can you help me ?
Another question, what is the use of conversion factor, conversion sum and the test button ?
Thanks :-)