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
2a0852cb
Commit
2a0852cb
authored
Jun 01, 2018
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more logging
parent
4b3b4769
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
TerrainQuery.cc
src/Terrain/TerrainQuery.cc
+5
-0
No files found.
src/Terrain/TerrainQuery.cc
View file @
2a0852cb
...
...
@@ -665,6 +665,8 @@ void TerrainPolyPathQuery::requestData(const QVariantList& polyPath)
void
TerrainPolyPathQuery
::
requestData
(
const
QList
<
QGeoCoordinate
>&
polyPath
)
{
qCDebug
(
TerrainQueryLog
)
<<
"TerrainPolyPathQuery::requestData count"
<<
polyPath
.
count
();
// Kick off first request
_rgCoords
=
polyPath
;
_curIndex
=
0
;
...
...
@@ -673,6 +675,8 @@ void TerrainPolyPathQuery::requestData(const QList<QGeoCoordinate>& polyPath)
void
TerrainPolyPathQuery
::
_terrainDataReceived
(
bool
success
,
const
TerrainPathQuery
::
PathHeightInfo_t
&
pathHeightInfo
)
{
qCDebug
(
TerrainQueryLog
)
<<
"TerrainPolyPathQuery::_terrainDataReceived success:_curIndex"
<<
success
<<
_curIndex
;
if
(
!
success
)
{
_rgPathHeightInfo
.
clear
();
emit
terrainData
(
false
/* success */
,
_rgPathHeightInfo
);
...
...
@@ -683,6 +687,7 @@ void TerrainPolyPathQuery::_terrainDataReceived(bool success, const TerrainPathQ
if
(
++
_curIndex
>=
_rgCoords
.
count
()
-
1
)
{
// We've finished all requests
qCDebug
(
TerrainQueryLog
)
<<
"TerrainPolyPathQuery::_terrainDataReceived complete"
;
emit
terrainData
(
true
/* success */
,
_rgPathHeightInfo
);
}
else
{
_pathQuery
.
requestData
(
_rgCoords
[
_curIndex
],
_rgCoords
[
_curIndex
+
1
]);
...
...
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