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

Move parameter storage formatting up to AP_Vehicle #26181

Merged
merged 7 commits into from
Feb 13, 2024

Conversation

peterbarker
Copy link
Contributor

Tested in SITL; parameters are preserved going from master to this, and setting FORMAT_VERSION still erases parameters.

I've chosen this shape (vehicles call a method on the base class) as not all vehicles which inherit from AP_Vehicle actually have a k_format_version (e.g. Replay). These vehicles do their own thing, so we have to consider the format-version-checking an optional feature which AP_Vehicle can provide.

@amilcarlucas
Copy link
Contributor

I love the @peterbarker classics. Again removes more than it ads.

Commit by commit, code duplication will die:)

@peterbarker peterbarker merged commit 5f24f33 into ArduPilot:master Feb 13, 2024
92 checks passed
@peterbarker peterbarker deleted the pr/parameter-clearing-up branch February 13, 2024 10:59
@rmackay9
Copy link
Contributor

@peterbarker,

An issue related to this came up (see #26336) and in my testing it appears that increasing k_format_version does not lead to parameters being reset. I suspect that the issue was present before you moved the code to AP_Vehicle but I haven't confirmed this yet.

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.

5 participants