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
cafd9e03
Commit
cafd9e03
authored
Oct 17, 2019
by
Valentin Platzgummer
Browse files
Options
Browse Files
Download
Plain Diff
merged with remote master
parents
e46e65e1
ea04fc44
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
3 deletions
+50
-3
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+16
-0
CircularSurveyItemEditor.qml
src/PlanView/CircularSurveyItemEditor.qml
+5
-0
CircularSurveyComplexItem.cc
src/Wima/CircularSurveyComplexItem.cc
+5
-1
CircularSurveyComplexItem.h
src/Wima/CircularSurveyComplexItem.h
+2
-0
WimaController.cc
src/Wima/WimaController.cc
+11
-0
WimaPlaner.cc
src/Wima/WimaPlaner.cc
+1
-0
SphericalSurveyMapVisual.qml
src/WimaView/SphericalSurveyMapVisual.qml
+10
-2
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
cafd9e03
...
...
@@ -512,6 +512,22 @@ QGCView {
FlightDisplayViewWidgets
{
id
:
flightDisplayViewWidgets
<<<<<<<
HEAD
=======
z
:
_panel
.
z
+
4
height
:
ScreenTools
.
availableHeight
-
(
singleMultiSelector
.
visible
?
singleMultiSelector
.
height
+
_margins
:
0
)
anchors.left
:
parent
.
left
anchors.right
:
altitudeSlider
.
visible
?
altitudeSlider
.
left
:
parent
.
right
anchors.bottom
:
parent
.
bottom
qgcView
:
root
useLightColors
:
isBackgroundDark
missionController
:
_missionController
visible
:
singleVehicleView
.
checked
&&
!
QGroundControl
.
videoManager
.
fullScreen
}
FlightDisplayWimaMenu
{
id
:
wimaMenu
>>>>>>>
ea04fc44a33fa7111877cdbdc2644ae4a9db9d2c
z
:
_panel
.
z
+
4
height
:
ScreenTools
.
availableHeight
-
(
singleMultiSelector
.
visible
?
singleMultiSelector
.
height
+
_margins
:
0
)
anchors.left
:
parent
.
left
...
...
src/PlanView/CircularSurveyItemEditor.qml
View file @
cafd9e03
...
...
@@ -151,6 +151,11 @@ Rectangle {
spacing
:
_margin
visible
:
transectsHeader
.
checked
QGCButton
{
text
:
qsTr
(
"
Reset Reference
"
)
onClicked
:
missionItem
.
resetReference
();
}
QGCButton
{
text
:
qsTr
(
"
Rotate Entry Point
"
)
onClicked
:
missionItem
.
rotateEntryPoint
();
...
...
src/Wima/CircularSurveyComplexItem.cc
View file @
cafd9e03
...
...
@@ -34,13 +34,17 @@ CircularSurveyComplexItem::CircularSurveyComplexItem(Vehicle *vehicle, bool flyV
}
void
CircularSurveyComplexItem
::
resetReference
()
{
setRefPoint
(
_surveyAreaPolygon
.
center
());
}
void
CircularSurveyComplexItem
::
setRefPoint
(
const
QGeoCoordinate
&
refPt
)
{
if
(
refPt
!=
_referencePoint
){
_referencePoint
=
refPt
;
emit
refPointChanged
();
//qDebug() << _referencePoint.toString();
}
}
...
...
src/Wima/CircularSurveyComplexItem.h
View file @
cafd9e03
...
...
@@ -24,6 +24,8 @@ public:
Q_PROPERTY
(
Fact
*
transectMinLength
READ
transectMinLength
CONSTANT
)
Q_PROPERTY
(
bool
autoGenerated
READ
autoGenerated
NOTIFY
autoGeneratedChanged
)
Q_INVOKABLE
void
resetReference
(
void
);
// Property setters
void
setRefPoint
(
const
QGeoCoordinate
&
refPt
);
// Set this to true if survey was automatically generated, prevents initialisation from gui.
...
...
src/Wima/WimaController.cc
View file @
cafd9e03
...
...
@@ -343,9 +343,15 @@ void WimaController::containerDataValidChanged(bool valid)
_missionController
->
insertSimpleMissionItem
(
*
missionItem
,
missionControllerVisualItems
->
count
());
if
(
missionItem
->
command
()
==
MAV_CMD_NAV_VTOL_LAND
<<<<<<<
HEAD
||
missionItem
->
command
()
==
MAV_CMD_NAV_LAND
)
break
;
=======
||
missionItem
->
command
()
==
MAV_CMD_NAV_LAND
)
_missionController
->
insertSimpleMissionItem
(
*
missionItem
,
missionControllerVisualItems
->
count
());
break
;
>>>>>>>
ea04fc44a33fa7111877cdbdc2644ae4a9db9d2c
}
...
...
@@ -392,9 +398,14 @@ void WimaController::containerDataValidChanged(bool valid)
void
WimaController
::
updateCurrentMissionItems
()
{
<<<<<<<
HEAD
if
(
_missionItems
.
count
()
<
1
||
!
_localPlanDataValid
)
return
;
=======
if
(
_missionItems
.
count
()
<
0
||
!
_localPlanDataValid
)
return
;
>>>>>>>
ea04fc44a33fa7111877cdbdc2644ae4a9db9d2c
int
numberWaypoints
=
30
;
// the number of waypoints currentMissionItems must not exceed
int
overlapping
=
2
;
// number of overlapping waypoints of consecutive mission phases
...
...
src/Wima/WimaPlaner.cc
View file @
cafd9e03
...
...
@@ -100,6 +100,7 @@ void WimaPlaner::removeArea(int index)
if
(
_visualItems
.
count
()
==
0
)
{
// this branch is reached if all items are removed
// to guarentee proper behavior, _currentAreaIndex must be set to a invalid value, as on constructor init.
resetAllInteractive
();
_currentAreaIndex
=
-
1
;
return
;
}
...
...
src/WimaView/SphericalSurveyMapVisual.qml
View file @
cafd9e03
...
...
@@ -172,11 +172,19 @@ Item {
DragCoordinate
{
map
:
_root
.
map
qgcView
:
_root
.
qgcView
z
:
QGroundControl
.
zOrderMapItems
z
:
QGroundControl
.
zOrderMapItems
checked
:
_missionItem
.
isCurrentItem
coordinate
:
_missionItem
.
refPoint
onCoordinateChanged
:
_missionItem
.
refPoint
=
coordinate
property
var
refPoint
:
_missionItem
.
refPoint
onCoordinateChanged
:
_missionItem
.
refPoint
=
coordinate
onRefPointChanged
:
{
if
(
refPoint
!==
coordinate
)
{
coordinate
=
refPoint
}
}
onClicked
:
_root
.
clicked
(
_missionItem
.
sequenceNumber
)
}
}
...
...
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