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
bcc8a2ab
Commit
bcc8a2ab
authored
Oct 11, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1951 from DonLakeFlyer/LogFixes
Log fixes, MavlinkLogTest::_connectLogArm_test
parents
d242549a
f0169d1e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
14 deletions
+4
-14
QGCApplication.cc
src/QGCApplication.cc
+0
-10
MockLink.cc
src/comm/MockLink.cc
+2
-2
MockLink.h
src/comm/MockLink.h
+1
-1
MavlinkLogTest.cc
src/qgcunittest/MavlinkLogTest.cc
+1
-1
No files found.
src/QGCApplication.cc
View file @
bcc8a2ab
...
@@ -219,17 +219,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
...
@@ -219,17 +219,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
filterRules
+=
".debug=true
\n
"
;
filterRules
+=
".debug=true
\n
"
;
}
}
}
}
if
(
_runningUnitTests
)
{
// We need to turn off these warnings until the firmware meta data is cleaned up
filterRules
+=
"PX4ParameterLoaderLog.warning=false
\n
"
;
}
}
else
{
}
else
{
if
(
_runningUnitTests
)
{
// We need to turn off these warnings until the firmware meta data is cleaned up
QLoggingCategory
::
setFilterRules
(
QStringLiteral
(
"PX4ParameterLoaderLog.warning=false"
));
}
// First thing we want to do is set up the qtlogging.ini file. If it doesn't already exist we copy
// First thing we want to do is set up the qtlogging.ini file. If it doesn't already exist we copy
// it to the correct location. This way default debug builds will have logging turned off.
// it to the correct location. This way default debug builds will have logging turned off.
...
...
src/comm/MockLink.cc
View file @
bcc8a2ab
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#include <string.h>
#include <string.h>
QGC_LOGGING_CATEGORY
(
MockLinkLog
,
"MockLinkLog"
)
QGC_LOGGING_CATEGORY
(
MockLinkLog
,
"MockLinkLog"
)
QGC_LOGGING_CATEGORY
(
MockLink
LogVerbose
,
"MockLinkLogVerbose
"
)
QGC_LOGGING_CATEGORY
(
MockLink
VerboseLog
,
"MockLinkVerboseLog
"
)
/// @file
/// @file
/// @brief Mock implementation of a Link.
/// @brief Mock implementation of a Link.
...
@@ -216,7 +216,7 @@ void MockLink::_loadParams(void)
...
@@ -216,7 +216,7 @@ void MockLink::_loadParams(void)
break
;
break
;
}
}
qCDebug
(
MockLink
LogVerbose
)
<<
"Loading param"
<<
paramName
<<
paramValue
;
qCDebug
(
MockLink
VerboseLog
)
<<
"Loading param"
<<
paramName
<<
paramValue
;
_mapParamName2Value
[
componentId
][
paramName
]
=
paramValue
;
_mapParamName2Value
[
componentId
][
paramName
]
=
paramValue
;
_mapParamName2MavParamType
[
paramName
]
=
static_cast
<
MAV_PARAM_TYPE
>
(
paramType
);
_mapParamName2MavParamType
[
paramName
]
=
static_cast
<
MAV_PARAM_TYPE
>
(
paramType
);
...
...
src/comm/MockLink.h
View file @
bcc8a2ab
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#include "QGCMAVLink.h"
#include "QGCMAVLink.h"
Q_DECLARE_LOGGING_CATEGORY
(
MockLinkLog
)
Q_DECLARE_LOGGING_CATEGORY
(
MockLinkLog
)
Q_DECLARE_LOGGING_CATEGORY
(
MockLink
LogVerbose
)
Q_DECLARE_LOGGING_CATEGORY
(
MockLink
VerboseLog
)
/// @file
/// @file
/// @brief Mock implementation of a Link.
/// @brief Mock implementation of a Link.
...
...
src/qgcunittest/MavlinkLogTest.cc
View file @
bcc8a2ab
...
@@ -180,7 +180,7 @@ void MavlinkLogTest::_connectLogNoArm_test(void)
...
@@ -180,7 +180,7 @@ void MavlinkLogTest::_connectLogNoArm_test(void)
void
MavlinkLogTest
::
_connectLogArm_test
(
void
)
void
MavlinkLogTest
::
_connectLogArm_test
(
void
)
{
{
//
_connectLogWorker(true);
_connectLogWorker
(
true
);
}
}
void
MavlinkLogTest
::
_deleteTempLogFiles_test
(
void
)
void
MavlinkLogTest
::
_deleteTempLogFiles_test
(
void
)
...
...
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