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
0b938f33
Commit
0b938f33
authored
Nov 19, 2018
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
64976f02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
44 deletions
+68
-44
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+68
-44
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
0b938f33
...
...
@@ -163,6 +163,12 @@ QGCView {
id
:
missionCompleteDialogComponent
QGCViewDialog
{
property
var
activeVehicleCopy
:
_activeVehicle
onActiveVehicleCopyChanged
:
if
(
!
activeVehicleCopy
)
{
hideDialog
()
}
QGCFlickable
{
anchors.fill
:
parent
contentHeight
:
column
.
height
...
...
@@ -172,62 +178,80 @@ QGCView {
anchors.margins
:
_margins
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
spacing
:
ScreenTools
.
defaultFontPixelHeight
QGCLabel
{
Layout.fillWidth
:
true
text
:
qsTr
(
"
%1 Images Taken
"
).
arg
(
_activeVehicle
.
cameraTriggerPoints
.
count
)
horizontalAlignment
:
Text
.
AlignHCenter
visible
:
_activeVehicle
.
cameraTriggerPoints
.
count
!=
0
}
QGCButton
{
ColumnLayout
{
Layout.fillWidth
:
true
text
:
qsTr
(
"
Remove plan from vehicle
"
)
onClicked
:
{
_planMasterController
.
removeAllFromVehicle
()
hideDialog
()
spacing
:
ScreenTools
.
defaultFontPixelHeight
visible
:
!
_activeVehicle
.
connectionLost
||
!
_guidedController
.
showResumeMission
QGCLabel
{
Layout.fillWidth
:
true
text
:
qsTr
(
"
%1 Images Taken
"
).
arg
(
_activeVehicle
.
cameraTriggerPoints
.
count
)
horizontalAlignment
:
Text
.
AlignHCenter
visible
:
_activeVehicle
.
cameraTriggerPoints
.
count
!=
0
}
}
QGCButton
{
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignHCenter
text
:
qsTr
(
"
Leave plan on vehicle
"
)
onClicked
:
hideDialog
()
}
QGCButton
{
Layout.fillWidth
:
true
text
:
qsTr
(
"
Remove plan from vehicle
"
)
onClicked
:
{
_planMasterController
.
removeAllFromVehicle
()
hideDialog
()
}
}
Rectangle
{
Layout.fillWidth
:
true
color
:
qgcPal
.
text
height
:
1
}
QGCButton
{
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignHCenter
text
:
qsTr
(
"
Leave plan on vehicle
"
)
onClicked
:
hideDialog
()
}
QGCButton
{
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignHCenter
text
:
qsTr
(
"
Resume Mission From Waypoint %1
"
).
arg
(
_guidedController
.
_resumeMissionIndex
)
visible
:
_guidedController
.
showResumeMission
Rectangle
{
Layout.fillWidth
:
true
color
:
qgcPal
.
text
height
:
1
}
onClicked
:
{
guidedController
.
executeAction
(
_guidedController
.
actionResumeMission
,
null
,
null
)
hideDialog
()
QGCButton
{
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignHCenter
text
:
qsTr
(
"
Resume Mission From Waypoint %1
"
).
arg
(
_guidedController
.
_resumeMissionIndex
)
visible
:
_guidedController
.
showResumeMission
onClicked
:
{
guidedController
.
executeAction
(
_guidedController
.
actionResumeMission
,
null
,
null
)
hideDialog
()
}
}
}
QGCLabel
{
Layout.fillWidth
:
true
wrapMode
:
Text
.
WordWrap
text
:
qsTr
(
"
Resume Mission will rebuild the current mission from the last flown waypoint and upload it to the vehicle for the next flight.
"
)
visible
:
_guidedController
.
showResumeMission
QGCLabel
{
Layout.fillWidth
:
true
wrapMode
:
Text
.
WordWrap
text
:
qsTr
(
"
Resume Mission will rebuild the current mission from the last flown waypoint and upload it to the vehicle for the next flight.
"
)
visible
:
_guidedController
.
showResumeMission
}
QGCLabel
{
Layout.fillWidth
:
true
wrapMode
:
Text
.
WordWrap
color
:
qgcPal
.
warningText
text
:
qsTr
(
"
If you are changing batteries for Resume Mission do not disconnect from the vehicle when communication is lost.
"
)
visible
:
_guidedController
.
showResumeMission
}
}
QGCLabel
{
ColumnLayout
{
Layout.fillWidth
:
true
wrapMode
:
Text
.
WordWrap
color
:
qgcPal
.
warningText
text
:
qsTr
(
"
If you are changing batteries for Resume Mission do not disconnect from the vehicle when communication is lost.
"
)
visible
:
_guidedController
.
showResumeMission
spacing
:
ScreenTools
.
defaultFontPixelHeight
visible
:
_activeVehicle
.
connectionLost
&&
_guidedController
.
showResumeMission
QGCLabel
{
Layout.fillWidth
:
true
wrapMode
:
Text
.
WordWrap
color
:
qgcPal
.
warningText
text
:
qsTr
(
"
If you are changing batteries for Resume Mission do not disconnect from the vehicle.
"
)
}
}
}
}
...
...
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