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
1b27f221
Commit
1b27f221
authored
6 years ago
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
1bf12b5b
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
360 deletions
+33
-360
CorridorScanComplexItem.cc
src/MissionManager/CorridorScanComplexItem.cc
+10
-7
SurveyComplexItem.cc
src/MissionManager/SurveyComplexItem.cc
+18
-350
SurveyComplexItem.h
src/MissionManager/SurveyComplexItem.h
+1
-1
TransectStyleComplexItem.cc
src/MissionManager/TransectStyleComplexItem.cc
+4
-2
No files found.
src/MissionManager/CorridorScanComplexItem.cc
View file @
1b27f221
...
...
@@ -172,7 +172,7 @@ void CorridorScanComplexItem::_buildAndAppendMissionItems(QList<MissionItem*>& i
//qDebug() << "_buildAndAppendMissionItems";
for
(
const
QList
<
TransectStyleComplexItem
::
CoordInfo_t
>&
transect
:
_transects
)
{
bool
entryPoint
=
true
;
bool
transectEntry
=
true
;
//qDebug() << "start transect";
for
(
const
CoordInfo_t
&
transectCoordInfo
:
transect
)
{
...
...
@@ -193,7 +193,7 @@ void CorridorScanComplexItem::_buildAndAppendMissionItems(QList<MissionItem*>& i
missionItemParent
);
items
.
append
(
item
);
if
(
firstOverallPoint
&&
addTriggerAtBeginning
)
{
if
(
triggerCamera
()
&&
firstOverallPoint
&&
addTriggerAtBeginning
)
{
// Start triggering
addTriggerAtBeginning
=
false
;
item
=
new
MissionItem
(
seqNum
++
,
...
...
@@ -210,9 +210,12 @@ void CorridorScanComplexItem::_buildAndAppendMissionItems(QList<MissionItem*>& i
}
firstOverallPoint
=
false
;
if
(
transectCoordInfo
.
coordType
==
TransectStyleComplexItem
::
CoordTypeSurveyEdge
&&
!
imagesEverywhere
)
{
if
(
entryPoint
)
{
// Start of transect, start triggering
// Possibly add trigger start/stop to survey area entrance/exit
if
(
triggerCamera
())
{
if
(
transectCoordInfo
.
coordType
==
TransectStyleComplexItem
::
CoordTypeSurveyEdge
&&
transectEntry
)
{
// Start of transect, always start triggering. We do this even if we are taking images everywhere.
// This allows a restart of the mission in mid-air without losing images from the entire mission.
// At most you may lose part of a transect.
item
=
new
MissionItem
(
seqNum
++
,
MAV_CMD_DO_SET_CAM_TRIGG_DIST
,
MAV_FRAME_MISSION
,
...
...
@@ -224,7 +227,8 @@ void CorridorScanComplexItem::_buildAndAppendMissionItems(QList<MissionItem*>& i
false
,
// isCurrentItem
missionItemParent
);
items
.
append
(
item
);
}
else
{
transectEntry
=
false
;
}
else
if
(
!
imagesEverywhere
&&
!
transectEntry
){
// End of transect, stop triggering
item
=
new
MissionItem
(
seqNum
++
,
MAV_CMD_DO_SET_CAM_TRIGG_DIST
,
...
...
@@ -238,7 +242,6 @@ void CorridorScanComplexItem::_buildAndAppendMissionItems(QList<MissionItem*>& i
missionItemParent
);
items
.
append
(
item
);
}
entryPoint
=
!
entryPoint
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/MissionManager/SurveyComplexItem.cc
View file @
1b27f221
This diff is collapsed.
Click to expand it.
src/MissionManager/SurveyComplexItem.h
View file @
1b27f221
...
...
@@ -117,7 +117,7 @@ private:
void
_rebuildTransectsPhase1WorkerSinglePolygon
(
bool
refly
);
void
_rebuildTransectsPhase1WorkerSplitPolygons
(
bool
refly
);
/// Adds to the _transects array from one polygon
void
_rebuildTrans
ce
tsFromPolygon
(
bool
refly
,
const
QPolygonF
&
polygon
,
const
QGeoCoordinate
&
tangentOrigin
,
const
QPointF
*
const
transitionPoint
);
void
_rebuildTrans
ec
tsFromPolygon
(
bool
refly
,
const
QPolygonF
&
polygon
,
const
QGeoCoordinate
&
tangentOrigin
,
const
QPointF
*
const
transitionPoint
);
// Decompose polygon into list of convex sub polygons
void
_PolygonDecomposeConvex
(
const
QPolygonF
&
polygon
,
QList
<
QPolygonF
>&
decomposedPolygons
);
// return true if vertex a can see vertex b
...
...
This diff is collapsed.
Click to expand it.
src/MissionManager/TransectStyleComplexItem.cc
View file @
1b27f221
...
...
@@ -719,10 +719,12 @@ int TransectStyleComplexItem::lastSequenceNumber(void) const
}
if
(
!
hoverAndCaptureEnabled
())
{
if
(
!
hoverAndCaptureEnabled
()
&&
triggerCamera
()
)
{
if
(
_cameraTriggerInTurnAroundFact
.
rawValue
().
toBool
())
{
// On
ly one camera start and on camera stop
// On
e camera start/stop for beginning/end of entire survey
itemCount
+=
2
;
// One camera start for each transect
itemCount
+=
_transects
.
count
();
}
else
{
// Each transect will have a camera start and stop in it
itemCount
+=
_transects
.
count
()
*
2
;
...
...
This diff is collapsed.
Click to expand it.
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