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
75f3cba8
Commit
75f3cba8
authored
Dec 28, 2018
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
fb13763f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
5 deletions
+30
-5
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+30
-5
No files found.
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
75f3cba8
...
...
@@ -295,6 +295,7 @@ FlightMap {
}
}
// GoTo Location visuals
MapQuickItem
{
id
:
gotoLocationItem
visible
:
false
...
...
@@ -308,6 +309,15 @@ FlightMap {
label
:
qsTr
(
"
Goto here
"
,
"
Goto here waypoint
"
)
}
property
bool
inGotoFlightMode
:
_activeVehicle
?
_activeVehicle
.
flightMode
===
_activeVehicle
.
gotoFlightMode
:
false
onInGotoFlightModeChanged
:
{
if
(
!
inGotoFlightMode
&&
visible
)
{
// Hide goto indicator when vehicle falls out of guided mode
visible
=
false
}
}
function
show
(
coord
)
{
gotoLocationItem
.
coordinate
=
coord
gotoLocationItem
.
visible
=
true
...
...
@@ -316,10 +326,17 @@ FlightMap {
function
hide
()
{
gotoLocationItem
.
visible
=
false
}
}
// Orbit visuals
function
actionConfirmed
()
{
// We leave the indicator visible. The handling for onInGuidedModeChanged will hide it.
}
function
actionCancelled
()
{
hide
()
}
}
// Orbit editing visuals
QGCMapCircleVisuals
{
id
:
orbitMapCircle
mapControl
:
parent
...
...
@@ -341,6 +358,15 @@ FlightMap {
orbitMapCircle
.
visible
=
false
}
function
actionConfirmed
()
{
// Live orbit status is handled by telemetry so we hide here and telemetry will show again.
hide
()
}
function
actionCancelled
()
{
hide
()
}
function
radius
()
{
return
_mapCircle
.
radius
.
rawValue
}
...
...
@@ -357,7 +383,6 @@ FlightMap {
}
// Orbit telemetry visuals
QGCMapCircleVisuals
{
id
:
orbitTelemetryCircle
mapControl
:
parent
...
...
@@ -395,7 +420,7 @@ FlightMap {
onTriggered
:
{
gotoLocationItem
.
show
(
clickMenu
.
coord
)
orbitMapCircle
.
hide
()
guidedActionsController
.
confirmAction
(
guidedActionsController
.
actionGoto
,
clickMenu
.
coord
)
guidedActionsController
.
confirmAction
(
guidedActionsController
.
actionGoto
,
clickMenu
.
coord
,
gotoLocationItem
)
}
}
...
...
@@ -406,7 +431,7 @@ FlightMap {
onTriggered
:
{
orbitMapCircle
.
show
(
clickMenu
.
coord
)
gotoLocationItem
.
hide
()
guidedActionsController
.
confirmAction
(
guidedActionsController
.
actionOrbit
,
clickMenu
.
coord
)
guidedActionsController
.
confirmAction
(
guidedActionsController
.
actionOrbit
,
clickMenu
.
coord
,
orbitMapCircle
)
}
}
}
...
...
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