mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 06:18:52 +08:00
module_config: support custom actuators_metadata backed by module-level params
This commit is contained in:
@@ -369,6 +369,33 @@ actuator_output:
|
||||
# ui only shows the param if this condition is true
|
||||
type: string
|
||||
regex: *condition_regex
|
||||
custom_params:
|
||||
type: list
|
||||
schema: &mixer_parameter
|
||||
type: dict
|
||||
schema:
|
||||
label:
|
||||
type: string
|
||||
name:
|
||||
# param name
|
||||
type: string
|
||||
required: true
|
||||
show_as:
|
||||
type: string
|
||||
allowed: [ 'bitset', 'true-if-positive' ]
|
||||
show_if:
|
||||
# condition
|
||||
type: string
|
||||
regex: *condition_regex
|
||||
index_offset:
|
||||
type: integer
|
||||
advanced:
|
||||
type: integer
|
||||
function:
|
||||
type: string
|
||||
identifier:
|
||||
# for rules
|
||||
type: string
|
||||
extra_function_groups:
|
||||
# Additional function groups to add, defined in output_functions.yaml
|
||||
type: list
|
||||
@@ -477,31 +504,7 @@ mixer:
|
||||
per_item_parameters:
|
||||
type: list
|
||||
minlength: 1
|
||||
schema: &mixer_parameter
|
||||
type: dict
|
||||
schema:
|
||||
label:
|
||||
type: string
|
||||
name:
|
||||
# param name
|
||||
type: string
|
||||
required: true
|
||||
show_as:
|
||||
type: string
|
||||
allowed: [ 'bitset', 'true-if-positive' ]
|
||||
show_if:
|
||||
# condition
|
||||
type: string
|
||||
regex: *condition_regex
|
||||
index_offset:
|
||||
type: integer
|
||||
advanced:
|
||||
type: integer
|
||||
function:
|
||||
type: string
|
||||
identifier:
|
||||
# for rules
|
||||
type: string
|
||||
schema: *mixer_parameter
|
||||
rules:
|
||||
# mixer rules, validated by the mavlink actuator component information schema
|
||||
type: list
|
||||
|
||||
Reference in New Issue
Block a user