|
|
@ -133,25 +133,15 @@ SetupPage { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// We end up here when we detect a board plugged in after we've started upgrade |
|
|
|
// 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) |
|
|
|
statusTextArea.append(highlightPrefix + qsTr("Found device") + highlightSuffix + ": " + controller.boardType) |
|
|
|
if (controller.px4FlowBoard) { |
|
|
|
|
|
|
|
mainWindow.showComponentDialog(pixhawkFirmwareSelectDialogComponent, title, mainWindow.showDialogDefaultWidth, StandardButton.Ok | StandardButton.Cancel) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onBootloaderFound: { |
|
|
|
onBootloaderFound: mainWindow.showComponentDialog(firmwareSelectDialogComponent, title, mainWindow.showDialogDefaultWidth, StandardButton.Ok | StandardButton.Cancel) |
|
|
|
if (controller.pixhawkBoard) { |
|
|
|
onError: statusTextArea.append(flashFailText) |
|
|
|
mainWindow.showComponentDialog(pixhawkFirmwareSelectDialogComponent, title, mainWindow.showDialogDefaultWidth, StandardButton.Ok | StandardButton.Cancel) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onError: { |
|
|
|
|
|
|
|
statusTextArea.append(flashFailText) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Component { |
|
|
|
Component { |
|
|
|
id: pixhawkFirmwareSelectDialogComponent |
|
|
|
id: firmwareSelectDialogComponent |
|
|
|
|
|
|
|
|
|
|
|
QGCViewDialog { |
|
|
|
QGCViewDialog { |
|
|
|
id: pixhawkFirmwareSelectDialog |
|
|
|
id: pixhawkFirmwareSelectDialog |
|
|
@ -463,7 +453,6 @@ SetupPage { |
|
|
|
visible: showFirmwareTypeSelection |
|
|
|
visible: showFirmwareTypeSelection |
|
|
|
textRole: "text" |
|
|
|
textRole: "text" |
|
|
|
model: _singleFirmwareMode ? singleFirmwareModeTypeList : (px4Flow ? px4FlowTypeList : firmwareBuildTypeList) |
|
|
|
model: _singleFirmwareMode ? singleFirmwareModeTypeList : (px4Flow ? px4FlowTypeList : firmwareBuildTypeList) |
|
|
|
currentIndex: controller.selectedFirmwareBuildType |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onActivated: { |
|
|
|
onActivated: { |
|
|
|
controller.selectedFirmwareBuildType = model.get(index).firmwareType |
|
|
|
controller.selectedFirmwareBuildType = model.get(index).firmwareType |
|
|
@ -480,7 +469,7 @@ SetupPage { |
|
|
|
qsTr("It is only intended for DEVELOPERS. ") + |
|
|
|
qsTr("It is only intended for DEVELOPERS. ") + |
|
|
|
qsTr("Run bench tests without props first. ") + |
|
|
|
qsTr("Run bench tests without props first. ") + |
|
|
|
qsTr("Do NOT fly this without additional safety precautions. ") + |
|
|
|
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 { |
|
|
|
} else { |
|
|
|
firmwareWarningMessageVisible = false |
|
|
|
firmwareWarningMessageVisible = false |
|
|
|
} |
|
|
|
} |
|
|
@ -497,7 +486,7 @@ SetupPage { |
|
|
|
} // Column |
|
|
|
} // Column |
|
|
|
} // QGCFLickable |
|
|
|
} // QGCFLickable |
|
|
|
} // QGCViewDialog |
|
|
|
} // QGCViewDialog |
|
|
|
} // Component - pixhawkFirmwareSelectDialogComponent |
|
|
|
} // Component - firmwareSelectDialogComponent |
|
|
|
|
|
|
|
|
|
|
|
Component { |
|
|
|
Component { |
|
|
|
id: firmwareWarningDialog |
|
|
|
id: firmwareWarningDialog |
|
|
|