Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stats #10939

Closed
wants to merge 1 commit into from
Closed

Fix stats #10939

wants to merge 1 commit into from

Conversation

haslinghuis
Copy link
Member

Fixes: #10936

@haslinghuis haslinghuis added this to the 4.3 milestone Sep 1, 2021
@haslinghuis haslinghuis self-assigned this Sep 1, 2021
@limonspb
Copy link
Member

limonspb commented Sep 1, 2021

yeah i do not know if that's the right approach. It will mess up this scenario:

  1. plug your quad
  2. Change PIDs/rates via OSD menu of via switches
  3. Don't save - exit no save
  4. Fly, land, disarm (with new PIDs/Rates)

At this point user has an option - he can go ahead and save changes via OSD
or he can unplug if he does not want these changes to be saved.

Now if we introduce stats without checking that condition, it will automatically save everything on disarm including new PIDs Rates etc.

@haslinghuis
Copy link
Member Author

Yes what I said before:

Agree. But it's an expensive operation. So we just have to make sure the dirty flag is set.

@limonspb
Copy link
Member

limonspb commented Sep 1, 2021

I don't think it's about how expensive the operation is, it's about unexpected saves of PIDs for the user when he does not expect them to be saved yet.

@haslinghuis
Copy link
Member Author

Then we have to make sure the dirty flag is set on the right place

@limonspb
Copy link
Member

limonspb commented Sep 1, 2021

@haslinghuis i think so yes. That could be more complicated, i could not figure that out from the first look :)

@haslinghuis
Copy link
Member Author

Build is ready - so you could check implications of it. Otherwise it's not obvious where it fails yet.

@haslinghuis haslinghuis marked this pull request as draft September 2, 2021 10:52
@haslinghuis
Copy link
Member Author

Closing as known limitation: #10936 (comment)

@haslinghuis haslinghuis deleted the fix_stats branch September 21, 2021 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stats is not being saved when Rate profile adjustments are set (latest Master)
2 participants