Delay of step counter
I was building a script to record the steps in real time. I notice that the MetaWear app on IOS gives real time step counts without any delay or thresholding. But if I read the sensor from my script, sometimes it published the step counts in real time, but as soon as I stop for llike 1-2 seconds and restart the walk, the counter would stop and suddenly increase by 5, and then resume real time counts, as if there is some kind of thresholding for it to determine if the person is actually walking. Is there a config that I missed? How can I get the step counts in real time?
Comments
Is this on the MMR or MMS? Can you add more details?
This is on MTR. Basically it behaves like this:
True step | Counter Step
0 | 0
1 | 0
2 | 0
3 | 0
4 | 0
5 | 5
6 | 6
7 | 7
......
10 | 10
10 | 10
10 | 10
10 | 10
11 | 10
12 | 10
13 | 10
14 | 10
15 | 15
16 | 16
However this does not occur on IOS MetaWear app, I was wondering if there is a setting that controls this thresholding behavior?
Hey @askker,
You can see the MetaWear app default behavior here:
https://github.com/mbientlab/MetaWear-SDK-iOS-macOS-tvOS/blob/117c8156042a519c929a9f4564d865767f1f634d/ExampleApp/MetaWearApp/DeviceDetailViewController.swift#L932
I fixed it using the detector instead of counter. Looks like counter has a built in significant motion detection that only activates when there are significant motion after some pausing.