Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
2826f78b
Commit
2826f78b
authored
Apr 29, 2019
by
Gus Grubba
Browse files
Wait for the fly view map to be initialized before setting states
parent
ae63bfe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/FlightDisplay/FlightDisplayView.qml
View file @
2826f78b
...
...
@@ -90,8 +90,10 @@ Item {
_flightMapContainer
.
state
=
"
pipMode
"
_flightVideo
.
state
=
"
fullMode
"
//-- Set Map Zoom Level
_savedZoomLevel
=
mainWindow
.
flightDisplayMap
.
zoomLevel
mainWindow
.
flightDisplayMap
.
zoomLevel
=
_savedZoomLevel
-
3
if
(
mainWindow
.
flightDisplayMap
)
{
_savedZoomLevel
=
mainWindow
.
flightDisplayMap
.
zoomLevel
mainWindow
.
flightDisplayMap
.
zoomLevel
=
_savedZoomLevel
-
3
}
}
}
...
...
@@ -135,10 +137,10 @@ Item {
}
onVtolTransitionToFwdFlight
:
guidedController
.
confirmAction
(
guidedController
.
actionVtolTransitionToFwdFlight
)
onVtolTransitionToMRFlight
:
guidedController
.
confirmAction
(
guidedController
.
actionVtolTransitionToMRFlight
)
onFlightDisplayMapChanged
:
setStates
()
}
Component.onCompleted
:
{
setStates
()
if
(
QGroundControl
.
corePlugin
.
options
.
flyViewOverlay
.
toString
().
length
)
{
flyViewOverlay
.
source
=
QGroundControl
.
corePlugin
.
options
.
flyViewOverlay
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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