Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Average Steps in an exercise

The new Exercise API doesn't have the possibility to read a average stat of the steps like it does for speed, pace and heart rate. As I'm abusing the steps to show the strokes on my Stand Up Paddling App the Info would be nice. Any ideas to calculate this in a effective and easy way?

Best Answer
0 Votes
1 REPLY 1

Average steps per what? The number of steps in a given exercise is pretty absolute, whilst the others you mentioned others naturally fluctuate during an exercise, so it makes to have AVG versions of them.

 

Suspect you will need to determine when you want to limit/measure your average (e.g. steps per minute), then get the number of steps at second 0, allow your desired time to pass (e.g., 60 seconds) and take a second reading.

 

avgSteps = endSteps - startSteps;

startSteps = endSteps;

 

And repeat...

Best Answer
0 Votes