From 66adea1a4e2f6d43e27ccf90c79a5abea5be60c5 Mon Sep 17 00:00:00 2001 From: Rustom Jehangir Date: Mon, 10 Oct 2016 15:54:48 -0700 Subject: [PATCH] Update Sub safety for new leak detector parameter names --- src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml | 6 +++--- src/AutoPilotPlugins/APM/APMSafetyComponentSummarySub.qml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml b/src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml index a8ff1d10c..e07cc4dfc 100644 --- a/src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml +++ b/src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml @@ -40,8 +40,8 @@ QGCView { property Fact _fenceMargin: controller.getParameterFact(-1, "FENCE_MARGIN") property Fact _fenceType: controller.getParameterFact(-1, "FENCE_TYPE") - property Fact _leakPin: controller.getParameterFact(-1, "WD_1_PIN") - property Fact _leakLogic: controller.getParameterFact(-1, "WD_1_DEFAULT") + property Fact _leakPin: controller.getParameterFact(-1, "LEAK1_PIN") + property Fact _leakLogic: controller.getParameterFact(-1, "LEAK1_LOGIC") property Fact _armingCheck: controller.getParameterFact(-1, "ARMING_CHECK") @@ -180,7 +180,7 @@ QGCView { QGCLabel { id: leakDetectorLabel - text: qsTr("Leak Detector") + text: qsTr("Leak detector") font.family: ScreenTools.demiboldFontFamily } diff --git a/src/AutoPilotPlugins/APM/APMSafetyComponentSummarySub.qml b/src/AutoPilotPlugins/APM/APMSafetyComponentSummarySub.qml index a50f85a87..7bab272be 100644 --- a/src/AutoPilotPlugins/APM/APMSafetyComponentSummarySub.qml +++ b/src/AutoPilotPlugins/APM/APMSafetyComponentSummarySub.qml @@ -21,7 +21,7 @@ FactPanel { property Fact _fenceEnable: controller.getParameterFact(-1, "FENCE_ENABLE") property Fact _fenceType: controller.getParameterFact(-1, "FENCE_TYPE") - property Fact _leakPin: controller.getParameterFact(-1, "WD_1_PIN") + property Fact _leakPin: controller.getParameterFact(-1, "LEAK1_PIN") property Fact _armingCheck: controller.getParameterFact(-1, "ARMING_CHECK") @@ -72,7 +72,7 @@ FactPanel { } VehicleSummaryRow { - labelText: qsTr("Leak Detector:") + labelText: qsTr("Leak detector:") valueText: _leakPin.value > 0 ? qsTr("Enabled") : qsTr("Disabled") } -- 2.22.0