Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
3490be90
Commit
3490be90
authored
May 25, 2013
by
Lorenz Meier
Browse files
Made vehicle config robust against unknown system types
parent
80f8aac3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/QGCVehicleConfig.cc
View file @
3490be90
...
...
@@ -39,6 +39,7 @@ QGCVehicleConfig::QGCVehicleConfig(QWidget *parent) :
systemTypeToParamMap
[
"FIXED_WING"
]
=
new
QMap
<
QString
,
QGCToolWidget
*>
();
systemTypeToParamMap
[
"QUADROTOR"
]
=
new
QMap
<
QString
,
QGCToolWidget
*>
();
systemTypeToParamMap
[
"GROUND_ROVER"
]
=
new
QMap
<
QString
,
QGCToolWidget
*>
();
systemTypeToParamMap
[
"BOAT"
]
=
new
QMap
<
QString
,
QGCToolWidget
*>
();
libParamToWidgetMap
=
new
QMap
<
QString
,
QGCToolWidget
*>
();
setObjectName
(
"QGC_VEHICLECONFIG"
);
...
...
@@ -726,6 +727,8 @@ void QGCVehicleConfig::setActiveUAS(UASInterface* active)
{
//Indication that we have no meta data for this system type.
qDebug
()
<<
"No parameters defined for system type:"
<<
mav
->
getSystemTypeName
();
systemTypeToParamMap
[
mav
->
getSystemTypeName
()]
=
new
QMap
<
QString
,
QGCToolWidget
*>
();
paramToWidgetMap
=
systemTypeToParamMap
[
mav
->
getSystemTypeName
()];
}
if
(
!
paramTooltips
.
isEmpty
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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