Could it be that Bangle.on('step') fires only at multiples of 80ms?
yep: as you noted above, it's based on accelerometer data, which my default is polled at ~12Hz. Higher polling rates will mean higher battery usage though...
If 12Hz by itself is enough to detect fast steps then maybe you could consider doing something like checking cMaxDiff and difference in absolute time, and then if the difference was more than 50% but less than 80ms you still count it?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
This looks really cool.
yep: as you noted above, it's based on accelerometer data, which my default is polled at ~12Hz. Higher polling rates will mean higher battery usage though...
If 12Hz by itself is enough to detect fast steps then maybe you could consider doing something like checking cMaxDiff and difference in absolute time, and then if the difference was more than 50% but less than 80ms you still count it?