diff --git a/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml b/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml index 8146a048ad6139891e9026ceb738d179e2224765..93094d4d8cb3461fad3f0f316926c0da25d142b8 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