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
2e1efdc2
Commit
2e1efdc2
authored
Mar 08, 2015
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hotfix: Do not assert on missing param
parent
94e718b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
FactBinder.cc
src/FactSystem/FactBinder.cc
+6
-5
No files found.
src/FactSystem/FactBinder.cc
View file @
2e1efdc2
...
...
@@ -27,6 +27,7 @@
#include "FactBinder.h"
#include "UASManager.h"
#include "AutoPilotPluginManager.h"
#include <QDebug>
FactBinder
::
FactBinder
(
void
)
:
_autopilotPlugin
(
NULL
),
...
...
@@ -60,13 +61,13 @@ void FactBinder::setName(const QString& name)
if
(
_autopilotPlugin
->
factExists
(
name
))
{
_fact
=
_autopilotPlugin
->
getFact
(
name
);
connect
(
_fact
,
&
Fact
::
valueChanged
,
this
,
&
FactBinder
::
valueChanged
);
emit
valueChanged
();
emit
nameChanged
();
}
else
{
Q_ASSERT
(
false
)
;
qDebug
()
<<
"FAILED BINDING PARAM"
<<
name
<<
": PARAM DOES NOT EXIST ON SYSTEM!"
;
}
}
emit
valueChanged
();
emit
nameChanged
();
}
QVariant
FactBinder
::
value
(
void
)
const
...
...
@@ -83,7 +84,7 @@ void FactBinder::setValue(const QVariant& value)
if
(
_fact
)
{
_fact
->
setValue
(
value
);
}
else
{
Q_ASSERT
(
false
)
;
qDebug
()
<<
"FAILED SETTING PARAM VALUE"
<<
value
.
toString
()
<<
": PARAM DOES NOT EXIST ON SYSTEM!"
;
}
}
...
...
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