But I cannot find how to set a “power difference” as a condition (I’d like to set something like Power difference between max and min ≥ 400 watts in less than 15 seconds, for example)
I agree, the very pragmatic approach is to count spikes on the power curve, but it’s super inefficient
The reason for asking was actually inspired by Mads Pedersen, who, after a race analysis, told he was above 1000w 100 times or something, meaning that they at least have a way to calculate it.
You could do that with a custom field and easily iterate through the power stream (raw power or some average stream), and count every “spike” over a certain value, if the value before was in Z1/Z2.
That would be an interval field and you have to create it in Fields → Add Field → and so on.
Additionally you have to look only at the interval data, not the whole activity. Therefor you have to replace the power.forEach(… - line with e.g. this:
for (let i = interval.start_index; i < interval.end_index; i++) {
const currentPower = power[i];