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
07fbabc6
Commit
07fbabc6
authored
Aug 24, 2016
by
Andreas Bircher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding unit test to check waypoint addition for turnaround
parent
d092e850
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
ComplexMissionItemTest.cc
src/MissionManager/ComplexMissionItemTest.cc
+8
-0
SurveyMissionItem.h
src/MissionManager/SurveyMissionItem.h
+1
-0
No files found.
src/MissionManager/ComplexMissionItemTest.cc
View file @
07fbabc6
...
...
@@ -137,6 +137,14 @@ void ComplexMissionItemTest::_testAddPolygonCoordinate(void)
for
(
int
i
=
0
;
i
<
polyList
.
count
();
i
++
)
{
QCOMPARE
(
polyList
[
i
].
value
<
QGeoCoordinate
>
(),
_polyPoints
[
i
]);
}
// Test that number of waypoints is doubled when using turnaround waypoints
_complexItem
->
setTurnaroundDist
(
60.0
);
QVariantList
gridPoints
=
_complexItem
->
gridPoints
();
_complexItem
->
setTurnaroundDist
(
0.0
);
QVariantList
gridPointsNoT
=
_complexItem
->
gridPoints
();
QCOMPARE
(
gridPoints
.
count
(),
2
*
gridPointsNoT
.
count
());
}
void
ComplexMissionItemTest
::
_testClearPolygon
(
void
)
...
...
src/MissionManager/SurveyMissionItem.h
View file @
07fbabc6
...
...
@@ -83,6 +83,7 @@ public:
void
setDirty
(
bool
dirty
)
final
;
void
setCoordinate
(
const
QGeoCoordinate
&
coordinate
)
final
;
void
setSequenceNumber
(
int
sequenceNumber
)
final
;
void
setTurnaroundDist
(
double
dist
)
{
_turnaroundDistFact
.
setRawValue
(
dist
);
}
void
save
(
QJsonObject
&
saveObject
)
const
final
;
signals:
...
...
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