This looks really promising! Thanks for the log as well - that really helps.
Sorry for the lack of replies. I've been a bit busy lately and I'm on holiday for 2 weeks starting next week, so there's a lot of preparation/finishing stuff off.
lib/misc/stepcount.c only goes as far back as April 2021. It must have been somewhere else before that ?
Threshold beforehand was 0.99g -> 1.01g so the acceleration had to dip below 0.99 then rise above 1.01 for it to be counted - but that's way less that in the paper you found
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 promising! Thanks for the log as well - that really helps.
Sorry for the lack of replies. I've been a bit busy lately and I'm on holiday for 2 weeks starting next week, so there's a lot of preparation/finishing stuff off.
Yes, it was in
lib/banglejs/jswrap_banglejs.c
alongside everything else before that. It's literally just : https://github.com/espruino/Espruino/blob/bb99dd861bfbf9765edcdc60f7bfe93d8984563e/libs/banglejs/jswrap_bangle.c#L648-L655Threshold beforehand was 0.99g -> 1.01g so the acceleration had to dip below 0.99 then rise above 1.01 for it to be counted - but that's way less that in the paper you found