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 { ...@@ -67,6 +67,8 @@ QGCView {
progressBar: progressBar progressBar: progressBar
statusLog: statusTextArea statusLog: statusTextArea
property var activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
Component.onCompleted: { Component.onCompleted: {
controllerCompleted = true controllerCompleted = true
if (qgcView.completedSignalled) { if (qgcView.completedSignalled) {
...@@ -75,20 +77,30 @@ QGCView { ...@@ -75,20 +77,30 @@ QGCView {
} }
} }
onActiveVehicleChanged: {
if (!activeVehicle) {
statusTextArea.append(plugInText)
}
}
onNoBoardFound: { onNoBoardFound: {
initialBoardSearch = false initialBoardSearch = false
statusTextArea.append(plugInText) if (!QGroundControl.multiVehicleManager.activeVehicleAvailable) {
statusTextArea.append(plugInText)
}
} }
onBoardGone: { onBoardGone: {
initialBoardSearch = false initialBoardSearch = false
statusTextArea.append(plugInText) if (!QGroundControl.multiVehicleManager.activeVehicleAvailable) {
statusTextArea.append(plugInText)
}
} }
onBoardFound: { onBoardFound: {
if (initialBoardSearch) { if (initialBoardSearch) {
// Board was found right away, so something is already plugged in before we've started upgrade // 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) statusTextArea.append(qgcDisconnectText)
} else { } else {
statusTextArea.append(usbUnplugText.replace('{0}', controller.boardType)) statusTextArea.append(usbUnplugText.replace('{0}', controller.boardType))
......
...@@ -159,7 +159,7 @@ Rectangle { ...@@ -159,7 +159,7 @@ Rectangle {
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
font.pixelSize: ScreenTools.largeFontPixelSize 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) 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