From f17a25f313a382f35d850f249c96a1634fb81731 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 17 Jun 2016 13:00:59 -0700 Subject: [PATCH] Don't show board orientation after compass cal --- src/AutoPilotPlugins/PX4/SensorsComponent.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/PX4/SensorsComponent.qml b/src/AutoPilotPlugins/PX4/SensorsComponent.qml index 1d9a982ff..b27d85c92 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponent.qml +++ b/src/AutoPilotPlugins/PX4/SensorsComponent.qml @@ -115,6 +115,7 @@ QGCView { onSetCompassRotations: { if (showCompass0Rot || showCompass1Rot || showCompass2Rot) { + setOrientationsDialogShowBoardOrientation = false showDialog(setOrientationsDialogComponent, qsTr("Set Compass Rotation(s)"), qgcView.showDialogDefaultWidth, StandardButton.Ok) } } @@ -195,6 +196,8 @@ QGCView { } } + property bool setOrientationsDialogShowBoardOrientation: true + Component { id: setOrientationsDialogComponent @@ -221,6 +224,8 @@ QGCView { } Column { + visible: setOrientationsDialogShowBoardOrientation + QGCLabel { text: qsTr("Autopilot Orientation:") } @@ -402,7 +407,10 @@ QGCView { id: setOrientationsButton width: parent.buttonWidth text: qsTr("Set Orientations") - onClicked: showDialog(setOrientationsDialogComponent, qsTr("Set Orientations"), qgcView.showDialogDefaultWidth, StandardButton.Ok) + onClicked: { + setOrientationsDialogShowBoardOrientation = true + showDialog(setOrientationsDialogComponent, qsTr("Set Orientations"), qgcView.showDialogDefaultWidth, StandardButton.Ok) + } } } // Column - Buttons -- 2.22.0