Commit 75dcc988 authored by Gus Grubba's avatar Gus Grubba

Handle setup page completed at the setup root level, Now for Firmware and Joystick controllers.

parent 18c16023
...@@ -62,7 +62,6 @@ SetupPage { ...@@ -62,7 +62,6 @@ SetupPage {
property bool _defaultFirmwareIsPX4: true property bool _defaultFirmwareIsPX4: true
property string firmwareWarningMessage property string firmwareWarningMessage
property bool controllerCompleted: false
property bool initialBoardSearch: true property bool initialBoardSearch: true
property string firmwareName property string firmwareName
...@@ -76,6 +75,11 @@ SetupPage { ...@@ -76,6 +75,11 @@ SetupPage {
QGCPalette { id: qgcPal; colorGroupEnabled: true } QGCPalette { id: qgcPal; colorGroupEnabled: true }
onSetupPageCompleted: {
controller.startBoardSearch()
_defaultFirmwareIsPX4 = _defaultFirmwareFact.rawValue === _defaultFimwareTypePX4 // we don't want this to be bound and change as radios are selected
}
FirmwareUpgradeController { FirmwareUpgradeController {
id: controller id: controller
progressBar: progressBar progressBar: progressBar
...@@ -83,11 +87,6 @@ SetupPage { ...@@ -83,11 +87,6 @@ SetupPage {
property var activeVehicle: QGroundControl.multiVehicleManager.activeVehicle property var activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
Component.onCompleted: {
controllerCompleted = true
controller.startBoardSearch()
}
onActiveVehicleChanged: { onActiveVehicleChanged: {
if (!activeVehicle) { if (!activeVehicle) {
statusTextArea.append(plugInText) statusTextArea.append(plugInText)
...@@ -129,14 +128,6 @@ SetupPage { ...@@ -129,14 +128,6 @@ SetupPage {
} }
} }
Component.onCompleted: {
if (controllerCompleted) {
// We can only start the board search when the Qml and Controller are completely done loading
controller.startBoardSearch()
}
_defaultFirmwareIsPX4 = _defaultFirmwareFact.rawValue === _defaultFimwareTypePX4 // we don't want this to be bound and change as radios are selected
}
Component { Component {
id: pixhawkFirmwareSelectDialogComponent id: pixhawkFirmwareSelectDialogComponent
......
...@@ -46,34 +46,20 @@ SetupPage { ...@@ -46,34 +46,20 @@ SetupPage {
width: availableWidth width: availableWidth
height: Math.max(leftColumn.height, rightColumn.height) height: Math.max(leftColumn.height, rightColumn.height)
property bool controllerCompleted: false
property bool controllerAndViewReady: false
readonly property real labelToMonitorMargin: ScreenTools.defaultFontPixelWidth * 3 readonly property real labelToMonitorMargin: ScreenTools.defaultFontPixelWidth * 3
property var _activeJoystick: joystickManager.activeJoystick property var _activeJoystick: joystickManager.activeJoystick
onSetupPageCompleted: {
controller.start()
}
JoystickConfigController { JoystickConfigController {
id: controller id: controller
statusText: statusText statusText: statusText
cancelButton: cancelButton cancelButton: cancelButton
nextButton: nextButton nextButton: nextButton
skipButton: skipButton skipButton: skipButton
Component.onCompleted: {
controllerCompleted = true
if (joystickPage.completedSignalled) {
controllerAndViewReady = true
controller.start()
}
}
}
Component.onCompleted: {
if (controllerCompleted) {
controllerAndViewReady = true
controller.start()
}
} }
// Live axis monitor control component // Live axis monitor control component
......
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