module_config: support custom actuators_metadata backed by module-level params

This commit is contained in:
SalimTerryLi
2023-05-02 10:09:52 +02:00
committed by Beat Küng
parent 7eb6535273
commit 9c467198be
2 changed files with 40 additions and 26 deletions
+28 -25
View File
@@ -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