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
79fe25ef
Unverified
Commit
79fe25ef
authored
Nov 14, 2019
by
Don Gagne
Committed by
GitHub
Nov 14, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8034 from DonLakeFlyer/PlanCreator
Plan creator: Fix insertion of takeoff item
parents
9204a9f5
24a2bb69
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
CorridorScanPlanCreator.cc
src/MissionManager/CorridorScanPlanCreator.cc
+1
-1
StructureScanPlanCreator.cc
src/MissionManager/StructureScanPlanCreator.cc
+1
-1
SurveyPlanCreator.cc
src/MissionManager/SurveyPlanCreator.cc
+1
-1
MissionItemEditor.qml
src/PlanView/MissionItemEditor.qml
+3
-4
PlanView.qml
src/PlanView/PlanView.qml
+1
-0
No files found.
src/MissionManager/CorridorScanPlanCreator.cc
View file @
79fe25ef
...
...
@@ -21,7 +21,7 @@ CorridorScanPlanCreator::CorridorScanPlanCreator(PlanMasterController* planMaste
void
CorridorScanPlanCreator
::
createPlan
(
const
QGeoCoordinate
&
mapCenterCoord
)
{
_planMasterController
->
removeAll
();
VisualMissionItem
*
takeoffItem
=
_missionController
->
insert
SimpleMission
Item
(
mapCenterCoord
,
-
1
);
VisualMissionItem
*
takeoffItem
=
_missionController
->
insert
Takeoff
Item
(
mapCenterCoord
,
-
1
);
takeoffItem
->
setWizardMode
(
true
);
_missionController
->
insertComplexMissionItem
(
MissionController
::
patternCorridorScanName
,
mapCenterCoord
,
-
1
)
->
setWizardMode
(
true
);
if
(
_planMasterController
->
managerVehicle
()
->
fixedWing
())
{
...
...
src/MissionManager/StructureScanPlanCreator.cc
View file @
79fe25ef
...
...
@@ -21,7 +21,7 @@ StructureScanPlanCreator::StructureScanPlanCreator(PlanMasterController* planMas
void
StructureScanPlanCreator
::
createPlan
(
const
QGeoCoordinate
&
mapCenterCoord
)
{
_planMasterController
->
removeAll
();
VisualMissionItem
*
takeoffItem
=
_missionController
->
insert
SimpleMission
Item
(
mapCenterCoord
,
-
1
);
VisualMissionItem
*
takeoffItem
=
_missionController
->
insert
Takeoff
Item
(
mapCenterCoord
,
-
1
);
takeoffItem
->
setWizardMode
(
true
);
_missionController
->
insertComplexMissionItem
(
MissionController
::
patternStructureScanName
,
mapCenterCoord
,
-
1
)
->
setWizardMode
(
true
);
if
(
_planMasterController
->
managerVehicle
()
->
fixedWing
())
{
...
...
src/MissionManager/SurveyPlanCreator.cc
View file @
79fe25ef
...
...
@@ -22,7 +22,7 @@ SurveyPlanCreator::SurveyPlanCreator(PlanMasterController* planMasterController,
void
SurveyPlanCreator
::
createPlan
(
const
QGeoCoordinate
&
mapCenterCoord
)
{
_planMasterController
->
removeAll
();
VisualMissionItem
*
takeoffItem
=
_missionController
->
insert
SimpleMission
Item
(
mapCenterCoord
,
-
1
);
VisualMissionItem
*
takeoffItem
=
_missionController
->
insert
Takeoff
Item
(
mapCenterCoord
,
-
1
);
takeoffItem
->
setWizardMode
(
true
);
_missionController
->
insertComplexMissionItem
(
MissionController
::
patternSurveyName
,
mapCenterCoord
,
-
1
)
->
setWizardMode
(
true
);
if
(
_planMasterController
->
managerVehicle
()
->
fixedWing
())
{
...
...
src/PlanView/MissionItemEditor.qml
View file @
79fe25ef
...
...
@@ -221,14 +221,13 @@ Rectangle {
QGCLabel
{
text
:
missionItem
.
commandName
}
QGCColoredImage
{
height
:
ScreenTools
.
implicitComboBoxHeight
-
(
ScreenTools
.
comboBoxPadding
*
2
)
height
:
ScreenTools
.
defaultFontPixelWidth
width
:
height
sourceSize.height
:
height
fillMode
:
Image
.
PreserveAspectFit
smooth
:
true
antialiasing
:
true
color
:
qgcPal
.
text
source
:
"
qrc:/qt-project.org/imports/QtQuick/Controls.2/images/double-arrow
.png
"
source
:
"
/qmlimages/arrow-down
.png
"
}
}
...
...
@@ -252,7 +251,7 @@ Rectangle {
id
:
commandLabel
anchors.leftMargin
:
ScreenTools
.
comboBoxPadding
anchors.fill
:
commandPicker
visible
:
(
!
missionItem
.
isCurrentItem
||
!
missionItem
.
isSimpleItem
||
_waypointsOnlyMode
)
&&
!
missionItem
.
isTakeoffItem
visible
:
!
missionItem
.
isCurrentItem
||
!
missionItem
.
isSimpleItem
||
_waypointsOnlyMode
||
missionItem
.
isTakeoffItem
verticalAlignment
:
Text
.
AlignVCenter
text
:
missionItem
.
commandName
color
:
_outerTextColor
...
...
src/PlanView/PlanView.qml
View file @
79fe25ef
...
...
@@ -533,6 +533,7 @@ Item {
anchorPoint.x
:
sourceItem
.
width
/
2
anchorPoint.y
:
sourceItem
.
height
/
2
z
:
QGroundControl
.
zOrderWaypointLines
+
1
visible
:
_editingLayer
==
_layerMission
sourceItem
:
SplitIndicator
{
onClicked
:
insertSimpleMissionItem
(
splitSegmentItem
.
coordinate
,
_missionController
.
visualItemIndexFromSequenceNumber
(
_missionController
.
currentPlanViewIndex
))
...
...
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