Commit fc652cbc authored by Don Gagne's avatar Don Gagne

Update Firmware Upgrade to new inactive disconnect model

parent ca6eccda
......@@ -67,6 +67,8 @@ QGCView {
progressBar: progressBar
statusLog: statusTextArea
property var activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
Component.onCompleted: {
controllerCompleted = true
if (qgcView.completedSignalled) {
......@@ -75,20 +77,30 @@ QGCView {
}
}
onActiveVehicleChanged: {
if (!activeVehicle) {
statusTextArea.append(plugInText)
}
}
onNoBoardFound: {
initialBoardSearch = false
statusTextArea.append(plugInText)
if (!QGroundControl.multiVehicleManager.activeVehicleAvailable) {
statusTextArea.append(plugInText)
}
}
onBoardGone: {
initialBoardSearch = false
statusTextArea.append(plugInText)
if (!QGroundControl.multiVehicleManager.activeVehicleAvailable) {
statusTextArea.append(plugInText)
}
}
onBoardFound: {
if (initialBoardSearch) {
// Board was found right away, so something is already plugged in before we've started upgrade
if (QGroundControl.linkManager.anyActiveLinks) {
if (QGroundControl.multiVehicleManager.activeVehicleAvailable) {
statusTextArea.append(qgcDisconnectText)
} else {
statusTextArea.append(usbUnplugText.replace('{0}', controller.boardType))
......
......@@ -159,7 +159,7 @@ Rectangle {
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
font.pixelSize: ScreenTools.largeFontPixelSize
text: "Connect vehicle to your device and QGroundControl will automatically connect to it. Click Firmware on the left to upgrade your vehicle."
text: "Connect vehicle to your device and QGroundControl will automatically detect to it. Click Firmware on the left to upgrade your vehicle."
onLinkActivated: Qt.openUrlExternally(link)
}
......
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