Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
75dcc988
Commit
75dcc988
authored
Apr 19, 2019
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle setup page completed at the setup root level, Now for Firmware and Joystick controllers.
parent
18c16023
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
32 deletions
+9
-32
FirmwareUpgrade.qml
src/VehicleSetup/FirmwareUpgrade.qml
+5
-14
JoystickConfig.qml
src/VehicleSetup/JoystickConfig.qml
+4
-18
No files found.
src/VehicleSetup/FirmwareUpgrade.qml
View file @
75dcc988
...
...
@@ -62,7 +62,6 @@ SetupPage {
property
bool
_defaultFirmwareIsPX4
:
true
property
string
firmwareWarningMessage
property
bool
controllerCompleted
:
false
property
bool
initialBoardSearch
:
true
property
string
firmwareName
...
...
@@ -76,6 +75,11 @@ SetupPage {
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
{
id
:
controller
progressBar
:
progressBar
...
...
@@ -83,11 +87,6 @@ SetupPage {
property
var
activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
Component.onCompleted
:
{
controllerCompleted
=
true
controller
.
startBoardSearch
()
}
onActiveVehicleChanged
:
{
if
(
!
activeVehicle
)
{
statusTextArea
.
append
(
plugInText
)
...
...
@@ -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
{
id
:
pixhawkFirmwareSelectDialogComponent
...
...
src/VehicleSetup/JoystickConfig.qml
View file @
75dcc988
...
...
@@ -46,34 +46,20 @@ SetupPage {
width
:
availableWidth
height
:
Math
.
max
(
leftColumn
.
height
,
rightColumn
.
height
)
property
bool
controllerCompleted
:
false
property
bool
controllerAndViewReady
:
false
readonly
property
real
labelToMonitorMargin
:
ScreenTools
.
defaultFontPixelWidth
*
3
property
var
_activeJoystick
:
joystickManager
.
activeJoystick
onSetupPageCompleted
:
{
controller
.
start
()
}
JoystickConfigController
{
id
:
controller
statusText
:
statusText
cancelButton
:
cancelButton
nextButton
:
nextButton
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment