Unverified Commit 30adfd96 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #6741 from DonLakeFlyer/ArduPilotSetup

ArduPilot setup fixes
parents 8d251ffc 8db18dae
......@@ -122,6 +122,9 @@ QString AudioOutput::fixTextMessageForAudio(const QString& string) {
if(result.contains(" EKF ", Qt::CaseInsensitive)) {
result.replace(" EKF ", " Eee Kay Eff ", Qt::CaseInsensitive);
}
if(result.contains("PREARM", Qt::CaseInsensitive)) {
result.replace("PREARM", "pre arm", Qt::CaseInsensitive);
}
// Convert negative numbers
QRegularExpression re(QStringLiteral("(-)[0-9]*\\.?[0-9]"));
......
......@@ -128,9 +128,7 @@ SetupPage {
onWaitingForCancelChanged: {
if (controller.waitingForCancel) {
showMessage(qsTr("Calibration Cancel"), qsTr("Waiting for Vehicle to response to Cancel. This may take a few seconds."), 0)
} else {
hideDialog()
showDialog(waitForCancelDialogComponent, qsTr("Calibration Cancel"), qgcView.showDialogDefaultWidth, 0)
}
}
......@@ -163,6 +161,24 @@ SetupPage {
QGCPalette { id: qgcPal; colorGroupEnabled: true }
Component {
id: waitForCancelDialogComponent
QGCViewMessage {
message: qsTr("Waiting for Vehicle to response to Cancel. This may take a few seconds.")
Connections {
target: controller
onWaitingForCancelChanged: {
if (!controller.waitingForCancel) {
hideDialog()
}
}
}
}
}
Component {
id: singleCompassOnboardResultsComponent
......@@ -265,7 +281,10 @@ SetupPage {
QGCButton {
text: qsTr("Reboot Vehicle")
onClicked: controller.vehicle.reboot()
onClicked: {
controller.vehicle.rebootVehicle()
hideDialog()
}
}
}
}
......@@ -290,8 +309,11 @@ SetupPage {
QGCButton {
text: qsTr("Reboot Vehicle")
onClicked: controller.vehicle.rebootVehicle()
}
onClicked: {
controller.vehicle.rebootVehicle()
hideDialog()
}
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment