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
4de7cf29
Commit
4de7cf29
authored
Jun 16, 2017
by
Don Gagne
Committed by
GitHub
Jun 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5303 from DonLakeFlyer/MissionSettingsUsability
Mission Settings: Work on usability
parents
d6715f55
9c46a394
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
11 deletions
+33
-11
MissionSettingsItem.h
src/MissionManager/MissionSettingsItem.h
+2
-2
MissionSettingsEditor.qml
src/PlanView/MissionSettingsEditor.qml
+31
-9
No files found.
src/MissionManager/MissionSettingsItem.h
View file @
4de7cf29
...
...
@@ -63,8 +63,8 @@ public:
bool
isStandaloneCoordinate
(
void
)
const
final
{
return
false
;
}
bool
specifiesCoordinate
(
void
)
const
final
;
bool
specifiesAltitudeOnly
(
void
)
const
final
{
return
false
;
}
QString
commandDescription
(
void
)
const
final
{
return
"Mission S
ettings
"
;
}
QString
commandName
(
void
)
const
final
{
return
"Mission S
ettings
"
;
}
QString
commandDescription
(
void
)
const
final
{
return
"Mission S
tart
"
;
}
QString
commandName
(
void
)
const
final
{
return
"Mission S
tart
"
;
}
QString
abbreviation
(
void
)
const
final
{
return
"H"
;
}
QGeoCoordinate
coordinate
(
void
)
const
final
{
return
_plannedHomePositionCoordinate
;
}
QGeoCoordinate
exitCoordinate
(
void
)
const
final
{
return
_plannedHomePositionCoordinate
;
}
...
...
src/PlanView/MissionSettingsEditor.qml
View file @
4de7cf29
...
...
@@ -83,12 +83,10 @@ Rectangle {
anchors.right
:
parent
?
parent
.
right
:
undefined
anchors.top
:
parent
?
parent
.
top
:
undefined
spacing
:
_margin
SectionHeader
{
id
:
missionDefaultsSectionHeader
text
:
qsTr
(
"
Mission Defaults
"
)
checked
:
true
showSpacer
:
false
}
Column
{
...
...
@@ -126,18 +124,42 @@ Rectangle {
enabled
:
flightSpeedCheckBox
.
checked
}
}
// GridLayout
QGCCheckBox
{
text
:
qsTr
(
"
RTL after mission end
"
)
checked
:
missionItem
.
missionEndRTL
onClicked
:
missionItem
.
missionEndRTL
=
checked
}
}
CameraSection
{
checked
:
missionItem
.
cameraSection
.
settingsSpecified
id
:
cameraSection
checked
:
true
}
QGCLabel
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
text
:
qsTr
(
"
Above camera commands will take affect immediately upon mission start.
"
)
wrapMode
:
Text
.
WordWrap
horizontalAlignment
:
Text
.
AlignHCenter
font.pointSize
:
ScreenTools
.
smallFontPointSize
visible
:
cameraSection
.
checked
}
SectionHeader
{
id
:
missionEndHeader
text
:
qsTr
(
"
Mission End
"
)
checked
:
true
}
Column
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
spacing
:
_margin
visible
:
missionEndHeader
.
checked
FactCheckBox
{
text
:
qsTr
(
"
Return To Launch
"
)
fact
:
missionItem
.
missionEndRTL
}
}
SectionHeader
{
id
:
vehicleInfoSectionHeader
text
:
qsTr
(
"
Vehicle Info
"
)
...
...
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