From 7b5bce56a97f1faf595705f3d569f393a84c52cc Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 14 Aug 2016 20:45:20 +0200 Subject: [PATCH] PX4: Add VTOL transition switch --- .../PX4/PX4SimpleFlightModes.qml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml b/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml index 8146a048a..93094d4d8 100644 --- a/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml +++ b/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml @@ -193,6 +193,26 @@ Item { indexModel: false } } + + Row { + spacing: ScreenTools.defaultFontPixelWidth + + property Fact fact: controller.getParameterFact(-1, "RC_MAP_TRANS_SW") + visible: (controller.vehicle.vtol) + + QGCLabel { + anchors.baseline: vtolCombo.baseline + text: "VTOL mode switch:" + color: parent.fact.value == 0 ? qgcPal.text : (controller.rcChannelValues[parent.fact.value - 1] >= 1500 ? "yellow" : qgcPal.text) + } + + FactComboBox { + id: vtolCombo + width: _channelComboWidth + fact: parent.fact + indexModel: false + } + } } // Column } // Rectangle -- 2.22.0