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
33ee9833
Commit
33ee9833
authored
Nov 17, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct handling of fence visibility
parent
8eab3f6e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+5
-3
MissionEditor.qml
src/MissionEditor/MissionEditor.qml
+3
-1
No files found.
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
33ee9833
...
...
@@ -110,7 +110,8 @@ FlightMap {
MapPolygon
{
border.color
:
"
#80FF0000
"
border.width
:
3
path
:
geoFenceController
.
polygonSupported
?
geoFenceController
.
polygon
.
path
:
undefined
path
:
geoFenceController
.
polygon
.
path
visible
:
geoFenceController
.
fenceEnabled
&&
geoFenceController
.
polygonSupported
}
// GeoFence circle
...
...
@@ -118,15 +119,16 @@ FlightMap {
border.color
:
"
#80FF0000
"
border.width
:
3
center
:
missionController
.
plannedHomePosition
radius
:
geoFenceController
.
circleSupported
?
geoFenceController
.
circleRadius
:
0
radius
:
(
geoFenceController
.
fenceEnabled
&&
geoFenceController
.
circleSupported
)
?
geoFenceController
.
circleRadius
:
0
z
:
QGroundControl
.
zOrderMapItems
visible
:
geoFenceController
.
fenceEnabled
&&
geoFenceController
.
circleSupported
}
// GeoFence breach return point
MapQuickItem
{
anchorPoint
:
Qt
.
point
(
sourceItem
.
width
/
2
,
sourceItem
.
height
/
2
)
coordinate
:
geoFenceController
.
breachReturnPoint
visible
:
geoFenceController
.
breachReturnSupported
visible
:
geoFenceController
.
fenceEnabled
&&
geoFenceController
.
breachReturnSupported
sourceItem
:
MissionItemIndexLabel
{
label
:
"
F
"
}
z
:
QGroundControl
.
zOrderMapItems
}
...
...
src/MissionEditor/MissionEditor.qml
View file @
33ee9833
...
...
@@ -786,8 +786,9 @@ QGCView {
MapPolygon
{
border.color
:
"
#80FF0000
"
border.width
:
3
path
:
geoFenceController
.
polygon
Supported
?
geoFenceController
.
polygon
.
path
:
undefined
path
:
geoFenceController
.
polygon
.
path
z
:
QGroundControl
.
zOrderMapItems
visible
:
geoFenceController
.
polygonSupported
}
// GeoFence circle
...
...
@@ -797,6 +798,7 @@ QGCView {
center
:
missionController
.
plannedHomePosition
radius
:
geoFenceController
.
circleSupported
?
geoFenceController
.
circleRadius
:
0
z
:
QGroundControl
.
zOrderMapItems
visible
:
geoFenceController
.
circleSupported
}
// GeoFence breach return point
...
...
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