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
f4ccb45f
Unverified
Commit
f4ccb45f
authored
Jul 31, 2018
by
Don Gagne
Committed by
GitHub
Jul 31, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6746 from DonLakeFlyer/FWLandingPosition
FW Landing Pattern: Allow set position/heading from vehicle
parents
3ba8aff7
71c503e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
105 additions
and
50 deletions
+105
-50
FWLandingPatternEditor.qml
src/PlanView/FWLandingPatternEditor.qml
+105
-50
No files found.
src/PlanView/FWLandingPatternEditor.qml
View file @
f4ccb45f
...
@@ -33,6 +33,10 @@ Rectangle {
...
@@ -33,6 +33,10 @@ Rectangle {
property
real
_margin
:
ScreenTools
.
defaultFontPixelWidth
/
2
property
real
_margin
:
ScreenTools
.
defaultFontPixelWidth
/
2
property
real
_spacer
:
ScreenTools
.
defaultFontPixelWidth
/
2
property
real
_spacer
:
ScreenTools
.
defaultFontPixelWidth
/
2
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
string
_setToVehicleHeadingStr
:
qsTr
(
"
Set to vehicle heading
"
)
property
string
_setToVehicleLocationStr
:
qsTr
(
"
Set to vehicle location
"
)
ExclusiveGroup
{
id
:
distanceGlideGroup
}
ExclusiveGroup
{
id
:
distanceGlideGroup
}
...
@@ -45,9 +49,16 @@ Rectangle {
...
@@ -45,9 +49,16 @@ Rectangle {
visible
:
missionItem
.
landingCoordSet
visible
:
missionItem
.
landingCoordSet
SectionHeader
{
SectionHeader
{
id
:
loiterPointSection
text
:
qsTr
(
"
Loiter point
"
)
text
:
qsTr
(
"
Loiter point
"
)
}
}
Column
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
spacing
:
_margin
visible
:
loiterPointSection
.
checked
Item
{
width
:
1
;
height
:
_spacer
}
Item
{
width
:
1
;
height
:
_spacer
}
FactTextFieldGrid
{
FactTextFieldGrid
{
...
@@ -65,7 +76,23 @@ Rectangle {
...
@@ -65,7 +76,23 @@ Rectangle {
onClicked
:
missionItem
.
loiterClockwise
=
checked
onClicked
:
missionItem
.
loiterClockwise
=
checked
}
}
SectionHeader
{
text
:
qsTr
(
"
Landing point
"
)
}
QGCButton
{
text
:
_setToVehicleHeadingStr
visible
:
_activeVehicle
onClicked
:
missionItem
.
landingHeading
.
rawValue
=
_activeVehicle
.
heading
.
rawValue
}
}
SectionHeader
{
id
:
landingPointSection
text
:
qsTr
(
"
Landing point
"
)
}
Column
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
spacing
:
_margin
visible
:
landingPointSection
.
checked
Item
{
width
:
1
;
height
:
_spacer
}
Item
{
width
:
1
;
height
:
_spacer
}
...
@@ -117,6 +144,14 @@ Rectangle {
...
@@ -117,6 +144,14 @@ Rectangle {
enabled
:
specifyGlideSlope
.
checked
enabled
:
specifyGlideSlope
.
checked
Layout.fillWidth
:
true
Layout.fillWidth
:
true
}
}
QGCButton
{
text
:
_setToVehicleLocationStr
visible
:
_activeVehicle
Layout.columnSpan
:
2
onClicked
:
missionItem
.
landingCoordinate
=
_activeVehicle
.
coordinate
}
}
}
}
Item
{
width
:
1
;
height
:
_spacer
}
Item
{
width
:
1
;
height
:
_spacer
}
...
@@ -143,7 +178,27 @@ Rectangle {
...
@@ -143,7 +178,27 @@ Rectangle {
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
wrapMode
:
Text
.
WordWrap
wrapMode
:
Text
.
WordWrap
horizontalAlignment
:
Text
.
AlignHCenter
text
:
qsTr
(
"
Click in map to set landing point.
"
)
text
:
qsTr
(
"
Click in map to set landing point.
"
)
}
}
QGCLabel
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
horizontalAlignment
:
Text
.
AlignHCenter
text
:
qsTr
(
"
- or -
"
)
visible
:
_activeVehicle
}
QGCButton
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
text
:
_setToVehicleLocationStr
visible
:
_activeVehicle
onClicked
:
{
missionItem
.
landingCoordinate
=
_activeVehicle
.
coordinate
missionItem
.
landingHeading
.
rawValue
=
_activeVehicle
.
heading
.
rawValue
}
}
}
}
}
}
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