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
ea04fc44
Commit
ea04fc44
authored
Oct 16, 2019
by
Valentin Platzgummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset ref button addded to circular surveyy
parent
a9d2e4c9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
3 deletions
+25
-3
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
+2
-0
WimaPlaner.cc
src/Wima/WimaPlaner.cc
+1
-0
SphericalSurveyMapVisual.qml
src/WimaView/SphericalSurveyMapVisual.qml
+10
-2
No files found.
src/PlanView/CircularSurveyItemEditor.qml
View file @
ea04fc44
...
...
@@ -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 @
ea04fc44
...
...
@@ -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 @
ea04fc44
...
...
@@ -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 @
ea04fc44
...
...
@@ -354,6 +354,8 @@ void WimaController::containerDataValidChanged(bool valid)
void
WimaController
::
updateCurrentMissionItems
()
{
if
(
_missionItems
.
count
()
<
0
||
!
_localPlanDataValid
)
return
;
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 @
ea04fc44
...
...
@@ -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 @
ea04fc44
...
...
@@ -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