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
6f6439cb
Commit
6f6439cb
authored
Aug 12, 2017
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fly: Show missions from all vehicles
parent
0686feca
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
10 deletions
+30
-10
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+2
-1
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+18
-5
PlanMapItems.qml
src/FlightMap/MapItems/PlanMapItems.qml
+8
-2
PlanView.qml
src/PlanView/PlanView.qml
+1
-1
QGCApplication.cc
src/QGCApplication.cc
+1
-1
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
6f6439cb
...
...
@@ -98,7 +98,7 @@ QGCView {
}
}
Plan
Elemement
MasterController
{
PlanMasterController
{
id
:
masterController
Component.onCompleted
:
start
(
false
/* editMode */
)
}
...
...
@@ -249,6 +249,7 @@ QGCView {
flightWidgets
:
flightDisplayViewWidgets
rightPanelWidth
:
ScreenTools
.
defaultFontPixelHeight
*
9
qgcView
:
root
multiVehicleView
:
!
singleVehicleView
.
checked
scaleState
:
(
_mainIsMap
&&
flyViewOverlay
.
item
)
?
(
flyViewOverlay
.
item
.
scaleState
?
flyViewOverlay
.
item
.
scaleState
:
"
bottomMode
"
)
:
"
bottomMode
"
}
}
...
...
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
6f6439cb
...
...
@@ -39,6 +39,7 @@ FlightMap {
property
var
flightWidgets
property
var
rightPanelWidth
property
var
qgcView
///< QGCView control which contains this map
property
var
multiVehicleView
///< true: multi-vehicle view, false: single vehicle view
property
rect
centerViewport
:
Qt
.
rect
(
0
,
0
,
width
,
height
)
...
...
@@ -206,11 +207,23 @@ FlightMap {
}
}
// Add the items associated with the flight place to the map
PlanMapItems
{
map
:
flightMap
largeMapView
:
_mainIsMap
masterController
:
_planMasterController
// Add the items associated with each vehicles flight plan to the map
Repeater
{
model
:
QGroundControl
.
multiVehicleManager
.
vehicles
PlanMapItems
{
map
:
flightMap
largeMapView
:
_mainIsMap
masterController
:
masterController
isActiveVehicle
:
_vehicle
.
active
property
var
_vehicle
:
object
PlanMasterController
{
id
:
masterController
Component.onCompleted
:
startStaticActiveVehicle
(
object
)
}
}
}
GeoFenceMapVisuals
{
...
...
src/FlightMap/MapItems/PlanMapItems.qml
View file @
6f6439cb
...
...
@@ -22,6 +22,7 @@ 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
_map
:
map
property
var
_missionController
:
masterController
.
missionController
...
...
@@ -35,11 +36,16 @@ Item {
delegate
:
MissionItemMapVisual
{
map
:
_map
onClicked
:
guidedActionsController
.
confirmAction
(
guidedActionsController
.
actionSetWaypoint
,
Math
.
max
(
object
.
sequenceNumber
,
1
))
onClicked
:
{
if
(
isActiveVehicle
)
{
// Only active vehicle supports click to change current mission item
guidedActionsController
.
confirmAction
(
guidedActionsController
.
actionSetWaypoint
,
Math
.
max
(
object
.
sequenceNumber
,
1
))
}
}
}
}
// Wayp
io
nt lines
// Wayp
oi
nt lines
Instantiator
{
model
:
largeMapView
?
_missionController
.
waypointLines
:
0
...
...
src/PlanView/PlanView.qml
View file @
6f6439cb
...
...
@@ -144,7 +144,7 @@ QGCView {
}
}
Plan
Elemement
MasterController
{
PlanMasterController
{
id
:
masterController
Component.onCompleted
:
{
...
...
src/QGCApplication.cc
View file @
6f6439cb
...
...
@@ -365,7 +365,7 @@ void QGCApplication::_initCommon(void)
qmlRegisterType
<
ParameterEditorController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"ParameterEditorController"
);
qmlRegisterType
<
ESP8266ComponentController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"ESP8266ComponentController"
);
qmlRegisterType
<
ScreenToolsController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"ScreenToolsController"
);
qmlRegisterType
<
PlanMasterController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"Plan
Elemement
MasterController"
);
qmlRegisterType
<
PlanMasterController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"PlanMasterController"
);
qmlRegisterType
<
ValuesWidgetController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"ValuesWidgetController"
);
qmlRegisterType
<
QGCFileDialogController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"QGCFileDialogController"
);
qmlRegisterType
<
RCChannelMonitorController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"RCChannelMonitorController"
);
...
...
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