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
f1196e14
Commit
f1196e14
authored
Aug 15, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show vehicle errors after parameter load
parent
fa12589e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
ParameterLoader.cc
src/FactSystem/ParameterLoader.cc
+10
-5
No files found.
src/FactSystem/ParameterLoader.cc
View file @
f1196e14
...
@@ -758,20 +758,25 @@ void ParameterLoader::_checkInitialLoadComplete(void)
...
@@ -758,20 +758,25 @@ void ParameterLoader::_checkInitialLoadComplete(void)
UASMessageHandler
*
msgHandler
=
UASMessageHandler
::
instance
();
UASMessageHandler
*
msgHandler
=
UASMessageHandler
::
instance
();
if
(
msgHandler
->
getErrorCountTotal
())
{
if
(
msgHandler
->
getErrorCountTotal
())
{
QString
errors
;
QString
errors
;
bool
firstError
=
true
;
msgHandler
->
lockAccess
();
msgHandler
->
lockAccess
();
foreach
(
UASMessage
*
msg
,
msgHandler
->
messages
())
{
foreach
(
UASMessage
*
msg
,
msgHandler
->
messages
())
{
if
(
msg
->
severityIsError
())
{
if
(
msg
->
severityIsError
())
{
errors
+=
msg
->
getText
();
if
(
!
firstError
)
{
errors
+=
"
\n
"
;
errors
+=
"
\n
"
;
}
}
errors
+=
" - "
;
errors
+=
msg
->
getText
();
firstError
=
false
;
}
}
}
msgHandler
->
unlockAccess
();
msgHandler
->
unlockAccess
();
QGCMessageBox
::
critical
(
"Vehicle startup errors"
,
if
(
!
firstError
)
{
QString
(
"Errors were detected during vehicle startup:
\n
"
QString
errorMsg
=
QString
(
"Errors were detected during vehicle startup. You should resolve these prior to flight.
\n
%1"
).
arg
(
errors
);
"%1"
qgcApp
()
->
showToolBarMessage
(
errorMsg
);
"You should resolve these prior to flight."
).
arg
(
errors
));
}
}
}
// Warn of parameter load failure
// Warn of parameter load failure
...
...
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