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
86647cab
Commit
86647cab
authored
May 15, 2017
by
Don Gagne
Committed by
GitHub
May 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5155 from DonLakeFlyer/WindRose
Wind Rose fixes
parents
a7f6612a
2156c17e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
44 deletions
+46
-44
SurveyItemEditor.qml
src/PlanView/SurveyItemEditor.qml
+46
-44
No files found.
src/PlanView/SurveyItemEditor.qml
View file @
86647cab
...
...
@@ -405,22 +405,20 @@ Rectangle {
anchors.right
:
parent
.
right
columnSpacing
:
_margin
rowSpacing
:
_margin
columns
:
3
columns
:
2
visible
:
gridHeader
.
checked
QGCLabel
{
id
:
angleText
text
:
qsTr
(
"
Angle
"
)
id
:
angleText
text
:
qsTr
(
"
Angle
"
)
Layout.fillWidth
:
true
}
Item
{
Layout.fillWidth
:
true
}
property
var
activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
ToolButton
{
id
:
windRoseButton
anchors.verticalCenter
:
angleText
.
verticalCenter
iconSource
:
qgcPal
.
globalTheme
===
QGCPalette
.
Light
?
"
/res/wind-roseBlack.svg
"
:
"
/res/wind-rose.svg
"
visible
:
_activeVehicle
?
_activeVehicle
.
fixedWing
:
true
visible
:
_vehicle
.
fixedWing
onClicked
:
{
var
cords
=
windRoseButton
.
mapToItem
(
_root
,
0
,
0
)
...
...
@@ -433,7 +431,6 @@ Rectangle {
id
:
gridAngleText
fact
:
missionItem
.
gridAngle
Layout.fillWidth
:
true
Layout.columnSpan
:
1
}
QGCLabel
{
text
:
qsTr
(
"
Turnaround dist
"
)
}
...
...
@@ -443,10 +440,10 @@ Rectangle {
}
QGCCheckBox
{
text
:
qsTr
(
"
Refly at 90 degree offset
"
)
checked
:
missionItem
.
refly90Degrees
onClicked
:
missionItem
.
refly90Degrees
=
checked
Layout.columnSpan
:
2
text
:
qsTr
(
"
Refly at 90 degree offset
"
)
checked
:
missionItem
.
refly90Degrees
onClicked
:
missionItem
.
refly90Degrees
=
checked
Layout.columnSpan
:
2
}
QGCLabel
{
...
...
@@ -493,67 +490,72 @@ Rectangle {
visible
:
gridTypeCombo
.
currentIndex
==
_gridTypeManual
}
Column
{
GridLayout
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
spacing
:
_margin
columnSpacing
:
_margin
rowSpacing
:
_margin
columns
:
2
visible
:
manualGridHeader
.
visible
&&
manualGridHeader
.
checked
GridLayout
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
columnSpacing
:
_margin
rowSpacing
:
_margin
columns
:
4
visible
:
gridHeader
.
checked
RowLayout
{
spacing
:
_margin
QGCLabel
{
id
:
manualAngleText
text
:
qsTr
(
"
Angle
"
)
Layout.columnSpan
:
1
id
:
manualAngleText
text
:
qsTr
(
"
Angle
"
)
Layout.fillWidth
:
true
}
property
var
activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
ToolButton
{
id
:
manualWindRoseButton
anchors.verticalCenter
:
manualAngleText
.
verticalCenter
Layout.columnSpan
:
1
iconSource
:
qgcPal
.
globalTheme
===
QGCPalette
.
Light
?
"
/res/wind-roseBlack.svg
"
:
"
/res/wind-rose.svg
"
visible
:
_activeVehicle
?
_activeVehicle
.
fixedWing
:
true
visible
:
_vehicle
.
fixedWing
onClicked
:
{
var
cords
=
manualWindRoseButton
.
mapToItem
(
_root
,
0
,
0
)
windRosePie
.
popup
(
cords
.
x
+
manualWindRoseButton
.
width
/
2
,
cords
.
y
+
manualWindRoseButton
.
height
/
2
);
}
}
}
FactTextField
{
id
:
manualGridAngleText
fact
:
missionItem
.
gridAngle
Layout.columnSpan
:
2
}
FactTextField
{
id
:
manualGridAngleText
fact
:
missionItem
.
gridAngle
Layout.fillWidth
:
true
}
FactTextFieldGrid
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
columnSpacing
:
ScreenTools
.
defaultFontPixelWidth
rowSpacing
:
_margin
factList
:
[
missionItem
.
gridSpacing
,
missionItem
.
gridAltitude
,
missionItem
.
turnaroundDist
]
factLabels
:
[
qsTr
(
"
Spacing
"
),
qsTr
(
"
Altitude
"
),
qsTr
(
"
Turnaround dist
"
)]
QGCLabel
{
text
:
qsTr
(
"
Spacing
"
)
}
FactTextField
{
fact
:
missionItem
.
gridSpacing
Layout.fillWidth
:
true
}
QGCLabel
{
text
:
qsTr
(
"
Altitude
"
)
}
FactTextField
{
fact
:
missionItem
.
gridAltitude
Layout.fillWidth
:
true
}
QGCLabel
{
text
:
qsTr
(
"
Turnaround dist
"
)
}
FactTextField
{
fact
:
missionItem
.
turnaroundDist
Layout.fillWidth
:
true
}
QGCCheckBox
{
text
:
qsTr
(
"
Refly at 90 degree offset
"
)
checked
:
missionItem
.
refly90Degrees
onClicked
:
missionItem
.
refly90Degrees
=
checked
text
:
qsTr
(
"
Refly at 90 degree offset
"
)
checked
:
missionItem
.
refly90Degrees
onClicked
:
missionItem
.
refly90Degrees
=
checked
Layout.columnSpan
:
2
}
FactCheckBox
{
anchors.left
:
parent
.
left
text
:
qsTr
(
"
Relative altitude
"
)
fact
:
missionItem
.
gridAltitudeRelative
anchors.left
:
parent
.
left
text
:
qsTr
(
"
Relative altitude
"
)
fact
:
missionItem
.
gridAltitudeRelative
Layout.columnSpan
:
2
}
}
...
...
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