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
7ecfdf16
Unverified
Commit
7ecfdf16
authored
Apr 11, 2018
by
Don Gagne
Committed by
GitHub
Apr 11, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6340 from DonLakeFlyer/LogTerrain
More logging in terrain, more work on log output to file
parents
27de23be
1e3db639
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
QGCApplication.cc
src/QGCApplication.cc
+1
-0
AppMessages.cc
src/QmlControls/AppMessages.cc
+3
-1
TerrainQuery.cc
src/Terrain/TerrainQuery.cc
+1
-0
No files found.
src/QGCApplication.cc
View file @
7ecfdf16
...
...
@@ -335,6 +335,7 @@ void QGCApplication::_shutdown(void)
QGCApplication
::~
QGCApplication
()
{
// Place shutdown code in _shutdown
_app
=
NULL
;
}
void
QGCApplication
::
_initCommon
(
void
)
...
...
src/QmlControls/AppMessages.cc
View file @
7ecfdf16
...
...
@@ -92,7 +92,8 @@ void AppLogModel::threadsafeLog(const QString message)
insertRows
(
line
,
1
);
setData
(
index
(
line
),
message
,
Qt
::
DisplayRole
);
if
(
_logFile
.
fileName
().
isEmpty
()
&&
qgcApp
()
->
logOutput
())
{
if
(
qgcApp
()
&&
qgcApp
()
->
logOutput
()
&&
_logFile
.
fileName
().
isEmpty
())
{
qDebug
()
<<
_logFile
.
fileName
().
isEmpty
()
<<
qgcApp
()
->
logOutput
();
QGCToolbox
*
toolbox
=
qgcApp
()
->
toolbox
();
// Be careful of toolbox not being open yet
if
(
toolbox
)
{
...
...
@@ -110,5 +111,6 @@ void AppLogModel::threadsafeLog(const QString message)
if
(
_logFile
.
isOpen
())
{
QTextStream
out
(
&
_logFile
);
out
<<
message
<<
"
\n
"
;
_logFile
.
flush
();
}
}
src/Terrain/TerrainQuery.cc
View file @
7ecfdf16
...
...
@@ -595,6 +595,7 @@ void TerrainAtCoordinateBatchManager::_coordinateHeights(bool success, QList<dou
int
currentIndex
=
0
;
foreach
(
const
SentRequestInfo_t
&
sentRequestInfo
,
_sentRequests
)
{
if
(
!
sentRequestInfo
.
queryObjectDestroyed
)
{
qCDebug
(
TerrainQueryLog
)
<<
"TerrainAtCoordinateBatchManager::_coordinateHeights returned TerrainCoordinateQuery:count"
<<
sentRequestInfo
.
terrainAtCoordinateQuery
<<
sentRequestInfo
.
cCoord
;
disconnect
(
sentRequestInfo
.
terrainAtCoordinateQuery
,
&
TerrainAtCoordinateQuery
::
destroyed
,
this
,
&
TerrainAtCoordinateBatchManager
::
_queryObjectDestroyed
);
QList
<
double
>
requestAltitudes
=
heights
.
mid
(
currentIndex
,
sentRequestInfo
.
cCoord
);
sentRequestInfo
.
terrainAtCoordinateQuery
->
_signalTerrainData
(
true
,
requestAltitudes
);
...
...
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