feat: consume vehicle-provided parameter metadata - #4069
Draft
JackSkellet wants to merge 8 commits into
Draft
Conversation
JackSkellet
force-pushed
the
codex/dynamic-parameter-metadata
branch
from
July 31, 2026 20:49
8f65459 to
f4818af
Compare
Member
|
@JackSkellet can you rebase the PR over master ? |
JackSkellet
force-pushed
the
codex/dynamic-parameter-metadata
branch
from
August 4, 2026 01:14
f4818af to
fcbb104
Compare
Author
|
@patrickelectric rebase has been completed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds support for consuming parameter metadata published by the connected flight controller instead of relying exclusively on BlueOS's bundled ArduPilot metadata files.
The implementation:
COMPONENT_METADATAadvertisements;t0.11.25to1.0.2and adapts BlueOS consumers to its string and bitflag JSON representation.Why
BlueOS currently assumes that parameter names, descriptions, units, ranges and enum choices are fully described by a static metadata file bundled with the frontend. That does not work well for custom firmware or for parameter choices that depend on devices discovered at runtime.
This enables use cases such as:
EK3_SRC1,EK3_SRC2andEK3_SRC3;The live metadata overlay has exact-name priority and also supports parameter templates. Invalid documents fail closed and do not replace the last valid snapshot.
Parameter import reliability
The parameter loader is also made tolerant of parameter files from another firmware version or feature set:
PARAM_SETuses the live parameter's MAVLink type;This allows a useful subset of a parameter file to be applied without leaving the loader permanently failed because optional parameters are unavailable.
mavlink2rest compatibility
COMPONENT_METADATAis not available through the previously pinned mavlink2rest release. Version1.0.2provides the required message definitions but changes the JSON representation of MAVLink character arrays and bitflags.The frontend and Commonwealth compatibility changes cover incoming and outgoing
PARAM_*,STATUSTEXT,HEARTBEATand related message paths so the upgrade does not silently break existing consumers. Release artifacts were checked for x86_64, ARMv7 and AArch64.Additional operational fixes
Two separate commits from live BlueOS testing are included in this draft:
[object Object].They fix startup/UI failures encountered while validating this branch. They are kept as separate commits and can be split into follow-up PRs if preferred.
Validation
1.0.2artifacts resolved for x86_64, ARMv7 and AArch64.