jranaraki / steps

This application counts your steps based on accelerometer data and calculates travelled distance based on computed stride length using the user's demographic information
https://open-store.io/app/steps.jranaraki
Other
1 stars 4 forks source link

Sensibility of the steps detector is too low #1

Closed mattbel10 closed 3 years ago

mattbel10 commented 3 years ago

This is a Halium 9 device. The app doesn't seem to work here. Thank you for your work. Matteo This is the log with some errors: Creating a QMirClientScreen now [PERFORMANCE]: Last frame took 46 ms to render. error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.103\" (uid=32011 pid=7205 comm=\"/usr/lib/qt5/bin/qmlscene qml/Main.qml \") interface=\"com.canonical.libertine.Service.Operations\" member=\"list\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=4974 comm=\"/usr/bin/python3 /usr/bin/libertined \")" error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.103\" (uid=32011 pid=7205 comm=\"/usr/lib/qt5/bin/qmlscene qml/Main.qml \") interface=\"com.canonical.libertine.Service.OperationsMonitor\" member=\"running\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=4974 comm=\"/usr/bin/python3 /usr/bin/libertined \")" lastError - no arguments? file:///usr/lib/aarch64-linux-gnu/qt5/qml/Ubuntu/Components/1.3/ComboButton.qml:398:5: QML Scrollbar: Cannot anchor to an item that isn't a parent or sibling. file:///usr/lib/aarch64-linux-gnu/qt5/qml/Ubuntu/Components/1.3/ComboButton.qml:398:5: QML Scrollbar: Cannot anchor to an item that isn't a parent or sibling. file:///usr/lib/aarch64-linux-gnu/qt5/qml/Ubuntu/Components/1.3/ComboButton.qml:398:5: QML Scrollbar: Cannot anchor to an item that isn't a parent or sibling.

gbdomubpkm commented 3 years ago

Yes, thank you very much for this project. 👍 But doesn't seem to work currently on the Volla too (OTA-19) : the accelerometer seems to work (checked with Sensorstatus, Balcy). But I want to be sure: is there only your app to install? Nothing else to activate?

mattbel10 commented 3 years ago

After an other check and following suggestion of a Telegram user, I can confirm that your app works also for Pixel 3a but I have to do very fast movements in order to make it start counting. Maybe sensibility shall be improved a lot to keep trace of steps when walking at a slow pace. @gbdomubpkm you can try for your Volla as well to see if it actually works ;)

gbdomubpkm commented 3 years ago

Hello again. I'm a sportsman and I was able to test it again: so YES, in principle, the step counter works on the Volla. I did roughly more than 3200 very cadenced steps with a stride of 0.8 m (I'm about 1.9 m tall: that should give me a distance of 2560 m approximately. And I get : screenshot20211027_190302065 !!! The sensitivity of the app should be multiplied by 100! 😉

If the length of the stride could be a parameter to be taken into account directly, it would seem interesting, more so than age in my opinion.

because, in addition in the calculation of the counter, I get strides of about 0.3 m ! 😯 🙂

mattbel10 commented 3 years ago

Hello again. I'm a sportsman and I was able to test it again: so YES, in principle, the step counter works on the Volla. I did roughly more than 3200 very cadenced steps with a stride of 0.8 m (I'm about 1.9 m tall: that should give me a distance of 2560 m approximately. And I get : screenshot20211027_190302065 !!! The sensitivity of the app should be multiplied by 100! 😉

If the length of the stride could be a parameter to be taken into account directly, it would seem interesting, more so than age in my opinion.

because, in addition in the calculation of the counter, I get strides of about 0.3 m ! 😯 🙂

I agree with you, age as a parameter doesn't make sense. Stride at different paces (in order to interpolate among them) and/or leg&shin length in addition to the total height to calculate the mechanical stride would make much more sense, in my humble opinion.

jranaraki commented 3 years ago

After an other check and following suggestion of a Telegram user, I can confirm that your app works also for Pixel 3a but I have to do very fast movements in order to make it start counting. Maybe sensibility shall be improved a lot to keep trace of steps when walking at a slow pace. @gbdomubpkm you can try for your Volla as well to see if it actually works ;)

The problem is fixed now as I have added both stride and sensitivity adjustment options to the settings page

jranaraki commented 3 years ago

Hello again. I'm a sportsman and I was able to test it again: so YES, in principle, the step counter works on the Volla. I did roughly more than 3200 very cadenced steps with a stride of 0.8 m (I'm about 1.9 m tall: that should give me a distance of 2560 m approximately. And I get : screenshot20211027_190302065 !!! The sensitivity of the app should be multiplied by 100! wink

If the length of the stride could be a parameter to be taken into account directly, it would seem interesting, more so than age in my opinion.

because, in addition in the calculation of the counter, I get strides of about 0.3 m ! hushed slightly_smiling_face

Should be fixed now

jranaraki commented 3 years ago

Hello again. I'm a sportsman and I was able to test it again: so YES, in principle, the step counter works on the Volla. I did roughly more than 3200 very cadenced steps with a stride of 0.8 m (I'm about 1.9 m tall: that should give me a distance of 2560 m approximately. And I get : screenshot20211027_190302065 !!! The sensitivity of the app should be multiplied by 100! wink If the length of the stride could be a parameter to be taken into account directly, it would seem interesting, more so than age in my opinion. because, in addition in the calculation of the counter, I get strides of about 0.3 m ! hushed slightly_smiling_face

I agree with you, age as a parameter doesn't make sense. Stride at different paces (in order to interpolate among them) and/or leg&shin length in addition to the total height to calculate the mechanical stride would make much more sense, in my humble opinion.

As mentioned above, stride can now be adjusted manually, if required.

jranaraki commented 3 years ago

New version will be on open-store momentarily

gbdomubpkm commented 3 years ago

Hello @jranaraki It does indeed work. Thank you. In my case, I have to set the sensitivity counter to around 10 to get a relatively accurate approximate step calculation. Perhaps the sensibility can be refined as well as the presentation of the ruler (graduation by sub-steps)?

jranaraki commented 3 years ago

Hi @gbdomubpkm ! Thanks for testing the app. I will add .5 points to the sensitivity for finer adjustments

gbdomubpkm commented 3 years ago

That's it. Thanks @jranaraki for the finer adjustment. What I'm wondering is if the sensitivity adjustment bar really needs a lower sensitivity adjustment that low, because in my case on the Volla, the adjustment is between 9 and 10. Does it need to go even higher depending on the smartphones? Maybe a thread should be opened on the forum to receive all the feedback on your app?

I need some clarifications so that the data received from the steps app is not distorted :

. normal operation of the accelerometer does not require the phone's cellular (internet) data to be turned on, does it? To clarify further, so the steps app can work normally either in aeroplane mode or only with cellular (internet) data turned off (switch off)? Is what I say correct?

. After changing settings, does the application have to be closed and reopened for the new settings to apply?

Thanks in advance for your answers.

Danfro commented 3 years ago

. normal operation of the accelerometer does not require the phone's cellular (internet) data to be turned on, does it? To clarify further, so the steps app can work normally either in aeroplane mode or only with cellular (internet) data turned off (switch off)? Is what I say correct?

Yes, the app works "offline". I tested that already. It does not have network aparmor permission, so it can not connect to the internet anyway.

What you really need to to, is set "prevent background suspension" with UT Tweak Tool.

. After changing settings, does the application have to be closed and reopened for the new settings to apply?

Generally setting changes are active after confirming (tick button). I don't think this is different here.

jranaraki commented 3 years ago

Thank you, @gbdomubpkm for raising great questions and thank you, @Danfro for addressing them accurately.