From 241279c1bca9ff31b919fff50705ebae4288403a Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 14 Jun 2019 13:08:51 -0700 Subject: [PATCH] Support 8 servos --- src/AutoPilotPlugins/APM/APMHeliComponent.qml | 92 +++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/src/AutoPilotPlugins/APM/APMHeliComponent.qml b/src/AutoPilotPlugins/APM/APMHeliComponent.qml index 458272d..cb559db 100644 --- a/src/AutoPilotPlugins/APM/APMHeliComponent.qml +++ b/src/AutoPilotPlugins/APM/APMHeliComponent.qml @@ -171,6 +171,98 @@ SetupPage { fact: controller.getParameterFact(-1, "SERVO4_REVERSED") Layout.fillWidth: true } + + QGCLabel { text: qsTr("5") } + FactComboBox { + fact: controller.getParameterFact(-1, "SERVO5_FUNCTION") + indexModel: false + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "SERVO5_MIN") + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "SERVO5_MAX") + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "SERVO5_TRIM") + Layout.fillWidth: true + } + FactCheckBox { + fact: controller.getParameterFact(-1, "SERVO5_REVERSED") + Layout.fillWidth: true + } + + QGCLabel { text: qsTr("6") } + FactComboBox { + fact: controller.getParameterFact(-1, "SERVO6_FUNCTION") + indexModel: false + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "SERVO6_MIN") + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "SERVO6_MAX") + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "SERVO6_TRIM") + Layout.fillWidth: true + } + FactCheckBox { + fact: controller.getParameterFact(-1, "SERVO6_REVERSED") + Layout.fillWidth: true + } + + QGCLabel { text: qsTr("7") } + FactComboBox { + fact: controller.getParameterFact(-1, "SERVO7_FUNCTION") + indexModel: false + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "SERVO7_MIN") + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "SERVO7_MAX") + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "SERVO7_TRIM") + Layout.fillWidth: true + } + FactCheckBox { + fact: controller.getParameterFact(-1, "SERVO7_REVERSED") + Layout.fillWidth: true + } + + QGCLabel { text: qsTr("8") } + FactComboBox { + fact: controller.getParameterFact(-1, "SERVO8_FUNCTION") + indexModel: false + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "SERVO8_MIN") + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "SERVO8_MAX") + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "SERVO8_TRIM") + Layout.fillWidth: true + } + FactCheckBox { + fact: controller.getParameterFact(-1, "SERVO8_REVERSED") + Layout.fillWidth: true + } } }