You are reading a single comment by @HughB and its replies.
Click here to read the full conversation.
-
@jeffmer - could you attach the Espruino/libs/misc/stepcount.c file. I'd like to have a look at RAW vs DCfilter output on a graph. Also just easier to see the full context by looking at the whole code etc.
-
I have forked a copy of the test harness repository and added my copy of
stepcount.c
with the DCfilter. You can find the repository here.
Thanks, here are the results for those files. First the current algorithm with threshold 17:
and next the algorithm with the DCFilter and threshold 15:
It's marginal but in my view, the DCFilter helps here.