From 18008b2de736d0ccd7e91ca0316d381c75c663fb Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Tue, 14 Dec 2021 10:23:51 +0100 Subject: [PATCH] CA module.yaml: add motor direction function also to UI for Tailsitter an Tiltrotor Signed-off-by: Silvan Fuhrer --- src/modules/control_allocator/module.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/modules/control_allocator/module.yaml b/src/modules/control_allocator/module.yaml index d4e0bcdcf0..27838a8271 100644 --- a/src/modules/control_allocator/module.yaml +++ b/src/modules/control_allocator/module.yaml @@ -539,6 +539,10 @@ mixer: extra: - name: 'CA_ROTOR${i}_TILT' label: 'Tilted by' + - name: 'CA_ROTOR${i}_KM' + label: 'Direction CCW' + function: 'spin-dir' + show_as: 'true-if-positive' - actuator_type: 'servo' group_label: 'Control Surfaces' count: 'CA_SV_CS_COUNT' @@ -586,6 +590,11 @@ mixer: per_item_parameters: standard: position: [ 'CA_ROTOR${i}_PX', 'CA_ROTOR${i}_PY', 'CA_ROTOR${i}_PZ' ] + extra: + - name: 'CA_ROTOR${i}_KM' + label: 'Direction CCW' + function: 'spin-dir' + show_as: 'true-if-positive' - actuator_type: 'servo' group_label: 'Control Surfaces' count: 'CA_SV_CS_COUNT'