Build a fitness app with Ullis Foreground extension?

Are you setting the spinner before or after you use the StartCountingSteps button. The spinner does set the correct stride . Are you counting walking steps?
Are you changing the stride while the pedometer is counting? Once you set stride, you shouldn't change it until you zero the count.

Using a stride of 0.762 41 steps yields 31.24 meters.





I have no idea what to change, but I have patience :smile:

have you checked this?

You don't have to change any of the spinner code. The code works fine. SelectionIndex doesn't make any difference. See my post earlier today. What you do need to do is be careful when you set the spinner.

Also, you can set the stride in the Screen1.Initialize block manual and/or save the spinner value to a TinyDB and read the value on app start.


I reset it to its first settings and retried all the step opening options, it gives me exactly the same measurements on everything
The same as the one shown in the above pictures

I set the spinner before, at the beginning and then I start the count

If anyone has time to send the AIA file, can I send it?
I have reached the point where I am completely confused

The spinner sets the value of stride correctly and counts correctly in my app. You have made so many changes to the original example Foreground Pedometer. V

Changing the spinner settings does work. See two examples.

stride X
@Ramon The problem is NOT with the spinner code.

For the moment, ignore the spinner and try this Evan
setStrideatappopening
Then tell us if it makes a difference to your distance traveled.

If you do it correctly and I guess you @SteveJG are doing it correctly, but not if you do not know the difference between Selection and SelectionIndex as @palaiologouiason in his blocks

The spinner logic currently will do nothing, see the difference here

Taifun

1 Like

This is what Evan was asked to use; evidently he got creative.
spinner1

Sorry Evan, I should have picked up your error in coding sooner. :cry:

There you go
Taifun






Either the solution was found or we are close to finding it, but here a change was made according to the results :smile:

:smile: :smile:


I placed these stride lengths more rounded and hopefully approximated my stride length depending on the day and mood :smile:

How can I store in the pedometer the measurements along with the time and date when the walk is performed?
Is there a sample with pictures?
Any tutorial?

Why didn't you try this yourself Evan? You certainly have enough experience and learned how to program by now. :cry:

No, of course not but plenty of examples showing how to use a TinyDB to store and retrieve data.

An example like this one might work in your app. Modify at your own risk.

Thank you very much for the example, I will try it right away.
I don't want to argue because I know where I am and I don't deserve it, even though I've made some progress and made some combinations and some changes, but I'm a long way from being able to store the measurements as I described.
A few days ago I only managed to save the measurements without time and date to have a weekly view.