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
47a1354b
Commit
47a1354b
authored
Nov 11, 2019
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
fcad8689
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
150 additions
and
228 deletions
+150
-228
qgcimages.qrc
qgcimages.qrc
+1
-1
qgroundcontrol.pro
qgroundcontrol.pro
+2
-2
qgroundcontrol.qrc
qgroundcontrol.qrc
+0
-1
BlankPlanCreator.cc
src/MissionManager/BlankPlanCreator.cc
+24
-0
BlankPlanCreator.h
src/MissionManager/BlankPlanCreator.h
+2
-2
BlankPlanCreator.png
src/MissionManager/BlankPlanCreator.png
+0
-0
CorridorScanPlanCreator.png
src/MissionManager/CorridorScanPlanCreator.png
+0
-0
CustomPlanCreator.cc
src/MissionManager/CustomPlanCreator.cc
+0
-38
CustomPlanCreator.png
src/MissionManager/CustomPlanCreator.png
+0
-0
PlanMasterController.cc
src/MissionManager/PlanMasterController.cc
+4
-4
StructureScanPlanCreator.png
src/MissionManager/StructureScanPlanCreator.png
+0
-0
SurveyPlanCreator.png
src/MissionManager/SurveyPlanCreator.png
+0
-0
PlanStartOverlay.qml
src/PlanView/PlanStartOverlay.qml
+0
-128
PlanView.qml
src/PlanView/PlanView.qml
+117
-51
qmldir
src/QmlControls/QGroundControl/Controls/qmldir
+0
-1
No files found.
qgcimages.qrc
View file @
47a1354b
...
...
@@ -127,7 +127,7 @@
<file alias="pipHide.svg">src/FlightMap/Images/pipHide.svg</file>
<file alias="pipResize.svg">src/FlightMap/Images/pipResize.svg</file>
<file alias="Plan.svg">src/ui/toolbar/Images/Plan.svg</file>
<file alias="PlanCreator/
CustomPlanCreator.png">src/MissionManager/Custom
PlanCreator.png</file>
<file alias="PlanCreator/
BlankPlanCreator.png">src/MissionManager/Blank
PlanCreator.png</file>
<file alias="PlanCreator/CorridorScanPlanCreator.png">src/MissionManager/CorridorScanPlanCreator.png</file>
<file alias="PlanCreator/StructureScanPlanCreator.png">src/MissionManager/StructureScanPlanCreator.png</file>
<file alias="PlanCreator/SurveyPlanCreator.png">src/MissionManager/SurveyPlanCreator.png</file>
...
...
qgroundcontrol.pro
View file @
47a1354b
...
...
@@ -592,7 +592,7 @@ HEADERS += \
src
/
MissionManager
/
ComplexMissionItem
.
h
\
src
/
MissionManager
/
CorridorScanComplexItem
.
h
\
src
/
MissionManager
/
CorridorScanPlanCreator
.
h
\
src
/
MissionManager
/
Custom
PlanCreator
.
h
\
src
/
MissionManager
/
Blank
PlanCreator
.
h
\
src
/
MissionManager
/
FixedWingLandingComplexItem
.
h
\
src
/
MissionManager
/
GeoFenceController
.
h
\
src
/
MissionManager
/
GeoFenceManager
.
h
\
...
...
@@ -823,7 +823,7 @@ SOURCES += \
src
/
MissionManager
/
ComplexMissionItem
.
cc
\
src
/
MissionManager
/
CorridorScanComplexItem
.
cc
\
src
/
MissionManager
/
CorridorScanPlanCreator
.
cc
\
src
/
MissionManager
/
Custom
PlanCreator
.
cc
\
src
/
MissionManager
/
Blank
PlanCreator
.
cc
\
src
/
MissionManager
/
FixedWingLandingComplexItem
.
cc
\
src
/
MissionManager
/
GeoFenceController
.
cc
\
src
/
MissionManager
/
GeoFenceManager
.
cc
\
...
...
qgroundcontrol.qrc
View file @
47a1354b
...
...
@@ -102,7 +102,6 @@
<file alias="QGroundControl/Controls/ParameterEditorDialog.qml">src/QmlControls/ParameterEditorDialog.qml</file>
<file alias="QGroundControl/Controls/PIDTuning.qml">src/QmlControls/PIDTuning.qml</file>
<file alias="QGroundControl/Controls/PlanEditToolbar.qml">src/PlanView/PlanEditToolbar.qml</file>
<file alias="QGroundControl/Controls/PlanStartOverlay.qml">src/PlanView/PlanStartOverlay.qml</file>
<file alias="QGroundControl/Controls/PreFlightCheckButton.qml">src/QmlControls/PreFlightCheckButton.qml</file>
<file alias="QGroundControl/Controls/PreFlightCheckGroup.qml">src/QmlControls/PreFlightCheckGroup.qml</file>
<file alias="QGroundControl/Controls/PreFlightCheckModel.qml">src/QmlControls/PreFlightCheckModel.qml</file>
...
...
src/MissionManager/BlankPlanCreator.cc
0 → 100644
View file @
47a1354b
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#include "BlankPlanCreator.h"
#include "PlanMasterController.h"
#include "MissionSettingsItem.h"
#include "FixedWingLandingComplexItem.h"
BlankPlanCreator
::
BlankPlanCreator
(
PlanMasterController
*
planMasterController
,
QObject
*
parent
)
:
PlanCreator
(
planMasterController
,
tr
(
"Blank"
),
QStringLiteral
(
"/qmlimages/PlanCreator/BlankPlanCreator.png"
),
parent
)
{
}
void
BlankPlanCreator
::
createPlan
(
const
QGeoCoordinate
&
mapCenterCoord
)
{
_planMasterController
->
removeAll
();
}
src/MissionManager/
Custom
PlanCreator.h
→
src/MissionManager/
Blank
PlanCreator.h
View file @
47a1354b
...
...
@@ -11,12 +11,12 @@
#include "PlanCreator.h"
class
Custom
PlanCreator
:
public
PlanCreator
class
Blank
PlanCreator
:
public
PlanCreator
{
Q_OBJECT
public:
Custom
PlanCreator
(
PlanMasterController
*
planMasterController
,
QObject
*
parent
=
nullptr
);
Blank
PlanCreator
(
PlanMasterController
*
planMasterController
,
QObject
*
parent
=
nullptr
);
Q_INVOKABLE
void
createPlan
(
const
QGeoCoordinate
&
mapCenterCoord
)
final
;
};
src/MissionManager/BlankPlanCreator.png
0 → 100644
View file @
47a1354b
726 KB
src/MissionManager/CorridorScanPlanCreator.png
View replaced file @
fcad8689
View file @
47a1354b
This diff is collapsed.
Click to expand it.
src/MissionManager/CustomPlanCreator.cc
deleted
100644 → 0
View file @
fcad8689
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#include "CustomPlanCreator.h"
#include "PlanMasterController.h"
#include "MissionSettingsItem.h"
#include "FixedWingLandingComplexItem.h"
CustomPlanCreator
::
CustomPlanCreator
(
PlanMasterController
*
planMasterController
,
QObject
*
parent
)
:
PlanCreator
(
planMasterController
,
tr
(
"Custom"
),
QStringLiteral
(
"/qmlimages/PlanCreator/CustomPlanCreator.png"
),
parent
)
{
}
void
CustomPlanCreator
::
createPlan
(
const
QGeoCoordinate
&
mapCenterCoord
)
{
_planMasterController
->
removeAll
();
VisualMissionItem
*
takeoffItem
=
_missionController
->
insertSimpleMissionItem
(
mapCenterCoord
,
-
1
);
takeoffItem
->
setWizardMode
(
true
);
_missionController
->
insertSimpleMissionItem
(
mapCenterCoord
.
atDistanceAndAzimuth
(
50
,
135
),
-
1
);
_missionController
->
insertSimpleMissionItem
(
mapCenterCoord
.
atDistanceAndAzimuth
(
50
,
-
135
),
-
1
);
if
(
_planMasterController
->
managerVehicle
()
->
fixedWing
())
{
FixedWingLandingComplexItem
*
landingItem
=
qobject_cast
<
FixedWingLandingComplexItem
*>
(
_missionController
->
insertComplexMissionItem
(
MissionController
::
patternFWLandingName
,
mapCenterCoord
,
-
1
));
landingItem
->
setWizardMode
(
true
);
landingItem
->
setLoiterDragAngleOnly
(
true
);
}
else
{
MissionSettingsItem
*
settingsItem
=
_missionController
->
visualItems
()
->
value
<
MissionSettingsItem
*>
(
0
);
settingsItem
->
setMissionEndRTL
(
true
);
}
_missionController
->
setCurrentPlanViewIndex
(
takeoffItem
->
sequenceNumber
(),
true
);
}
src/MissionManager/CustomPlanCreator.png
deleted
100644 → 0
View file @
fcad8689
203 KB
src/MissionManager/PlanMasterController.cc
View file @
47a1354b
...
...
@@ -19,7 +19,7 @@
#include "SurveyPlanCreator.h"
#include "StructureScanPlanCreator.h"
#include "CorridorScanPlanCreator.h"
#include "
Custom
PlanCreator.h"
#include "
Blank
PlanCreator.h"
#if defined(QGC_AIRMAP_ENABLED)
#include "AirspaceFlightPlanProvider.h"
#endif
...
...
@@ -601,19 +601,19 @@ void PlanMasterController::_updatePlanCreatorsList(void)
if
(
!
_flyView
)
{
if
(
!
_planCreators
)
{
_planCreators
=
new
QmlObjectListModel
(
this
);
_planCreators
->
append
(
new
BlankPlanCreator
(
this
,
this
));
_planCreators
->
append
(
new
SurveyPlanCreator
(
this
,
this
));
_planCreators
->
append
(
new
CorridorScanPlanCreator
(
this
,
this
));
_planCreators
->
append
(
new
CustomPlanCreator
(
this
,
this
));
emit
planCreatorsChanged
(
_planCreators
);
}
if
(
_managerVehicle
->
fixedWing
())
{
if
(
_planCreators
->
count
()
==
4
)
{
_planCreators
->
removeAt
(
_planCreators
->
count
()
-
2
);
_planCreators
->
removeAt
(
_planCreators
->
count
()
-
1
);
}
}
else
{
if
(
_planCreators
->
count
()
!=
4
)
{
_planCreators
->
insert
(
_planCreators
->
count
()
-
1
,
new
StructureScanPlanCreator
(
this
,
this
));
_planCreators
->
append
(
new
StructureScanPlanCreator
(
this
,
this
));
}
}
}
...
...
src/MissionManager/StructureScanPlanCreator.png
View replaced file @
fcad8689
View file @
47a1354b
This diff is collapsed.
Click to expand it.
src/MissionManager/SurveyPlanCreator.png
View replaced file @
fcad8689
View file @
47a1354b
200 KB
|
W:
|
H:
617 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/PlanView/PlanStartOverlay.qml
deleted
100644 → 0
View file @
fcad8689
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
import
QtQuick
2.3
import
QtQuick
.
Controls
2.4
import
QtQuick
.
Layouts
1.2
import
QGroundControl
1.0
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
Palette
1.0
Item
{
id
:
_root
property
var
planMasterController
property
var
mapControl
property
real
_radius
:
ScreenTools
.
defaultFontPixelWidth
/
2
property
real
_margins
:
ScreenTools
.
defaultFontPixelWidth
function
_mapCenter
()
{
var
centerPoint
=
Qt
.
point
(
mapControl
.
centerViewport
.
left
+
(
mapControl
.
centerViewport
.
width
/
2
),
mapControl
.
centerViewport
.
top
+
(
mapControl
.
centerViewport
.
height
/
2
))
return
mapControl
.
toCoordinate
(
centerPoint
,
false
/* clipToViewPort */
)
}
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
enabled
}
Rectangle
{
anchors.fill
:
parent
radius
:
_radius
color
:
"
white
"
opacity
:
0.75
}
// Close Icon
QGCColoredImage
{
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
/
2
anchors.top
:
parent
.
top
anchors.right
:
parent
.
right
width
:
ScreenTools
.
defaultFontPixelHeight
height
:
width
sourceSize.height
:
width
source
:
"
/res/XDelete.svg
"
fillMode
:
Image
.
PreserveAspectFit
mipmap
:
true
smooth
:
true
color
:
"
black
"
QGCMouseArea
{
fillItem
:
parent
onClicked
:
_root
.
visible
=
false
}
}
QGCLabel
{
id
:
title
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
horizontalAlignment
:
Text
.
AlignHCenter
text
:
qsTr
(
"
Create Plan
"
)
color
:
"
black
"
}
QGCFlickable
{
id
:
flickable
anchors.margins
:
_margins
anchors.top
:
title
.
bottom
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
contentHeight
:
creatorFlow
.
height
contentWidth
:
creatorFlow
.
width
Flow
{
id
:
creatorFlow
width
:
flickable
.
width
spacing
:
_margins
Repeater
{
model
:
_planMasterController
.
planCreators
Rectangle
{
id
:
button
width
:
ScreenTools
.
defaultFontPixelHeight
*
10
height
:
width
color
:
button
.
pressed
||
button
.
highlighted
?
qgcPal
.
buttonHighlight
:
qgcPal
.
button
property
bool
highlighted
:
mouseArea
.
containsMouse
property
bool
pressed
:
mouseArea
.
pressed
Image
{
anchors.margins
:
_margins
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.verticalCenter
:
parent
.
verticalCenter
source
:
object
.
imageResource
fillMode
:
Image
.
PreserveAspectFit
mipmap
:
true
}
QGCLabel
{
anchors.margins
:
_margins
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
horizontalAlignment
:
Text
.
AlignHCenter
text
:
object
.
name
color
:
button
.
pressed
||
button
.
highlighted
?
qgcPal
.
buttonHighlightText
:
qgcPal
.
buttonText
}
QGCMouseArea
{
id
:
mouseArea
anchors.fill
:
parent
hoverEnabled
:
true
preventStealing
:
true
onClicked
:
{
object
.
createPlan
(
_mapCenter
());
_root
.
visible
=
false
}
}
}
}
}
}
}
src/PlanView/PlanView.qml
View file @
47a1354b
This diff is collapsed.
Click to expand it.
src/QmlControls/QGroundControl/Controls/qmldir
View file @
47a1354b
...
...
@@ -40,7 +40,6 @@ ParameterEditor 1.0 ParameterEditor.qml
ParameterEditorDialog 1.0 ParameterEditorDialog.qml
PIDTuning 1.0 PIDTuning.qml
PlanEditToolbar 1.0 PlanEditToolbar.qml
PlanStartOverlay 1.0 PlanStartOverlay.qml
PreFlightCheckButton 1.0 PreFlightCheckButton.qml
PreFlightCheckGroup 1.0 PreFlightCheckGroup.qml
PreFlightCheckModel 1.0 PreFlightCheckModel.qml
...
...
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