|
|
|
@ -123,35 +123,25 @@ SetupPage {
@@ -123,35 +123,25 @@ SetupPage {
|
|
|
|
|
statusTextArea.append(qgcUnplugText2) |
|
|
|
|
|
|
|
|
|
var availableDevices = controller.availableBoardsName() |
|
|
|
|
if(availableDevices.length > 1) { |
|
|
|
|
if (availableDevices.length > 1) { |
|
|
|
|
statusTextArea.append(highlightPrefix + qsTr("Multiple devices detected! Remove all detected devices to perform the firmware upgrade.")) |
|
|
|
|
statusTextArea.append(qsTr("Detected [%1]: ").arg(availableDevices.length) + availableDevices.join(", ")) |
|
|
|
|
} |
|
|
|
|
if(QGroundControl.multiVehicleManager.activeVehicle) { |
|
|
|
|
if (QGroundControl.multiVehicleManager.activeVehicle) { |
|
|
|
|
QGroundControl.multiVehicleManager.activeVehicle.autoDisconnect = true |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
// We end up here when we detect a board plugged in after we've started upgrade |
|
|
|
|
statusTextArea.append(highlightPrefix + qsTr("Found device") + highlightSuffix + ": " + controller.boardType) |
|
|
|
|
if (controller.px4FlowBoard) { |
|
|
|
|
mainWindow.showComponentDialog(pixhawkFirmwareSelectDialogComponent, title, mainWindow.showDialogDefaultWidth, StandardButton.Ok | StandardButton.Cancel) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
onBootloaderFound: { |
|
|
|
|
if (controller.pixhawkBoard) { |
|
|
|
|
mainWindow.showComponentDialog(pixhawkFirmwareSelectDialogComponent, title, mainWindow.showDialogDefaultWidth, StandardButton.Ok | StandardButton.Cancel) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
onError: { |
|
|
|
|
statusTextArea.append(flashFailText) |
|
|
|
|
} |
|
|
|
|
onBootloaderFound: mainWindow.showComponentDialog(firmwareSelectDialogComponent, title, mainWindow.showDialogDefaultWidth, StandardButton.Ok | StandardButton.Cancel) |
|
|
|
|
onError: statusTextArea.append(flashFailText) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Component { |
|
|
|
|
id: pixhawkFirmwareSelectDialogComponent |
|
|
|
|
id: firmwareSelectDialogComponent |
|
|
|
|
|
|
|
|
|
QGCViewDialog { |
|
|
|
|
id: pixhawkFirmwareSelectDialog |
|
|
|
@ -463,7 +453,6 @@ SetupPage {
@@ -463,7 +453,6 @@ SetupPage {
|
|
|
|
|
visible: showFirmwareTypeSelection |
|
|
|
|
textRole: "text" |
|
|
|
|
model: _singleFirmwareMode ? singleFirmwareModeTypeList : (px4Flow ? px4FlowTypeList : firmwareBuildTypeList) |
|
|
|
|
currentIndex: controller.selectedFirmwareBuildType |
|
|
|
|
|
|
|
|
|
onActivated: { |
|
|
|
|
controller.selectedFirmwareBuildType = model.get(index).firmwareType |
|
|
|
@ -480,7 +469,7 @@ SetupPage {
@@ -480,7 +469,7 @@ SetupPage {
|
|
|
|
|
qsTr("It is only intended for DEVELOPERS. ") + |
|
|
|
|
qsTr("Run bench tests without props first. ") + |
|
|
|
|
qsTr("Do NOT fly this without additional safety precautions. ") + |
|
|
|
|
qsTr("Follow the mailing list actively when using it.") |
|
|
|
|
qsTr("Follow the forums actively when using it.") |
|
|
|
|
} else { |
|
|
|
|
firmwareWarningMessageVisible = false |
|
|
|
|
} |
|
|
|
@ -497,7 +486,7 @@ SetupPage {
@@ -497,7 +486,7 @@ SetupPage {
|
|
|
|
|
} // Column |
|
|
|
|
} // QGCFLickable |
|
|
|
|
} // QGCViewDialog |
|
|
|
|
} // Component - pixhawkFirmwareSelectDialogComponent |
|
|
|
|
} // Component - firmwareSelectDialogComponent |
|
|
|
|
|
|
|
|
|
Component { |
|
|
|
|
id: firmwareWarningDialog |
|
|
|
|