Browse Source

Merge pull request #3593 from DonLakeFlyer/OrientationDlg

Don't show board orientation after compass cal
QGC4.4
Don Gagne 9 years ago committed by GitHub
parent
commit
cfc673618c
  1. 10
      src/AutoPilotPlugins/PX4/SensorsComponent.qml

10
src/AutoPilotPlugins/PX4/SensorsComponent.qml

@ -115,6 +115,7 @@ QGCView { @@ -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 { @@ -195,6 +196,8 @@ QGCView {
}
}
property bool setOrientationsDialogShowBoardOrientation: true
Component {
id: setOrientationsDialogComponent
@ -221,6 +224,8 @@ QGCView { @@ -221,6 +224,8 @@ QGCView {
}
Column {
visible: setOrientationsDialogShowBoardOrientation
QGCLabel {
text: qsTr("Autopilot Orientation:")
}
@ -402,7 +407,10 @@ QGCView { @@ -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

Loading…
Cancel
Save