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
c4ea887b
Unverified
Commit
c4ea887b
authored
Sep 05, 2019
by
Don Gagne
Committed by
GitHub
Sep 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7779 from DonLakeFlyer/HiddenWaypoints
Fly: Hide waypoint indicators unless they are really needed
parents
36ee9318
112a6443
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
11 deletions
+16
-11
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+1
-1
PlanMapItems.qml
src/FlightMap/MapItems/PlanMapItems.qml
+8
-8
MissionItemMapVisual.qml
src/PlanView/MissionItemMapVisual.qml
+2
-1
SimpleItemMapVisual.qml
src/PlanView/SimpleItemMapVisual.qml
+2
-1
QGCDynamicObjectManager.qml
src/QmlControls/QGCDynamicObjectManager.qml
+3
-0
No files found.
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
c4ea887b
...
...
@@ -233,7 +233,7 @@ FlightMap {
map
:
flightMap
largeMapView
:
mainIsMap
masterController
:
masterController
isActiveVehicle
:
_vehicle
.
activ
e
vehicle
:
_vehicl
e
property
var
_vehicle
:
object
...
...
src/FlightMap/MapItems/PlanMapItems.qml
View file @
c4ea887b
...
...
@@ -23,26 +23,26 @@ Item {
property
var
map
///< Map control to show items on
property
bool
largeMapView
///< true: map takes up entire view, false: map is in small window
property
var
masterController
///< Reference to PlanMasterController for vehicle
property
bool
isActiveVehicle
///< true: vehicle associated with plan is active, false: in-active
property
var
vehicle
///< Vehicle associated with these items
property
var
_map
:
map
property
var
_vehicle
:
vehicle
property
var
_missionController
:
masterController
.
missionController
property
var
_geoFenceController
:
masterController
.
geoFenceController
property
var
_rallyPointController
:
masterController
.
rallyPointController
property
var
_missionLineViewComponent
property
bool
_isActiveVehicle
:
vehicle
.
active
property
string
fmode
:
vehicle
.
flightMode
// Add the mission item visuals to the map
Repeater
{
model
:
largeMapView
?
_missionController
.
visualItems
:
0
model
:
_isActiveVehicle
&&
largeMapView
?
_missionController
.
visualItems
:
0
delegate
:
MissionItemMapVisual
{
map
:
_map
onClicked
:
{
if
(
isActiveVehicle
)
{
// Only active vehicle supports click to change current mission item
guidedActionsController
.
confirmAction
(
guidedActionsController
.
actionSetWaypoint
,
Math
.
max
(
object
.
sequenceNumber
,
1
))
}
}
vehicle
:
_vehicle
onClicked
:
guidedActionsController
.
confirmAction
(
guidedActionsController
.
actionSetWaypoint
,
Math
.
max
(
object
.
sequenceNumber
,
1
))
}
}
...
...
src/PlanView/MissionItemMapVisual.qml
View file @
c4ea887b
...
...
@@ -22,6 +22,7 @@ Item {
id
:
_root
property
var
map
///< Map control to place item in
property
var
vehicle
///< Vehicle associated with this item
signal
clicked
(
int
sequenceNumber
)
...
...
@@ -33,7 +34,7 @@ Item {
if
(
component
.
status
===
Component
.
Error
)
{
console
.
log
(
"
Error loading Qml:
"
,
object
.
mapVisualQML
,
component
.
errorString
())
}
_visualItem
=
component
.
createObject
(
map
,
{
"
map
"
:
_root
.
map
})
_visualItem
=
component
.
createObject
(
map
,
{
"
map
"
:
_root
.
map
,
vehicle
:
_root
.
vehicle
})
_visualItem
.
clicked
.
connect
(
_root
.
clicked
)
}
}
...
...
src/PlanView/SimpleItemMapVisual.qml
View file @
c4ea887b
...
...
@@ -23,6 +23,7 @@ Item {
id
:
_root
property
var
map
///< Map control to place item in
property
var
vehicle
///< Vehicle associated with this item
property
var
_missionItem
:
object
property
var
_itemVisual
...
...
@@ -104,7 +105,7 @@ Item {
MissionItemIndicator
{
coordinate
:
_missionItem
.
coordinate
visible
:
_missionItem
.
specifiesCoordinate
visible
:
_missionItem
.
specifiesCoordinate
&&
(
_missionItem
.
homePosition
||
map
.
planView
||
_missionItem
.
isCurrentItem
||
(
vehicle
.
flightMode
===
vehicle
.
pauseFlightMode
&&
vehicle
.
armed
))
z
:
QGroundControl
.
zOrderMapItems
missionItem
:
_missionItem
sequenceNumber
:
_missionItem
.
sequenceNumber
...
...
src/QmlControls/QGCDynamicObjectManager.qml
View file @
c4ea887b
...
...
@@ -13,6 +13,9 @@ Item {
function
createObject
(
sourceComponent
,
parentObject
,
parentObjectIsMap
)
{
var
obj
=
sourceComponent
.
createObject
(
parentObject
)
if
(
obj
.
status
===
Component
.
Error
)
{
console
.
log
(
obj
.
errorString
())
}
rgDynamicObjects
.
push
(
obj
)
if
(
arguments
.
length
<
3
)
{
parentObjectIsMap
=
false
...
...
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