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
66d3ab68
Commit
66d3ab68
authored
Apr 09, 2013
by
Michael Carpenter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to allow for new configuration parameters
parent
e13b3a0d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
QGCVehicleConfig.cc
src/ui/QGCVehicleConfig.cc
+25
-4
QGCToolWidget.cc
src/ui/designer/QGCToolWidget.cc
+1
-0
No files found.
src/ui/QGCVehicleConfig.cc
View file @
66d3ab68
...
...
@@ -184,6 +184,7 @@ void QGCVehicleConfig::setActiveUAS(UASInterface* active)
mav
->
requestParameters
();
QString
defaultsDir
=
qApp
->
applicationDirPath
()
+
"/files/"
+
mav
->
getAutopilotTypeName
().
toLower
()
+
"/widgets/"
;
qDebug
()
<<
"CALIBRATION!! System Type Name:"
<<
mav
->
getSystemTypeName
();
QGCToolWidget
*
tool
;
...
...
@@ -202,7 +203,12 @@ void QGCVehicleConfig::setActiveUAS(UASInterface* active)
if
(
tool
->
loadSettings
(
defaultsDir
+
"px4_mc_attitude_pid_params.qgw"
,
false
))
{
toolWidgets
.
append
(
tool
);
ui
->
multiRotorAttitudeLayout
->
addWidget
(
tool
);
QGroupBox
*
box
=
new
QGroupBox
(
this
);
box
->
setTitle
(
tool
->
objectName
());
box
->
setLayout
(
new
QVBoxLayout
());
box
->
layout
()
->
addWidget
(
tool
);
ui
->
multiRotorAttitudeLayout
->
addWidget
(
box
);
//ui->multiRotorAttitudeLayout->addWidget(tool);
}
else
{
delete
tool
;
}
...
...
@@ -212,7 +218,12 @@ void QGCVehicleConfig::setActiveUAS(UASInterface* active)
if
(
tool
->
loadSettings
(
defaultsDir
+
"px4_mc_position_pid_params.qgw"
,
false
))
{
toolWidgets
.
append
(
tool
);
ui
->
multiRotorPositionLayout
->
addWidget
(
tool
);
QGroupBox
*
box
=
new
QGroupBox
(
this
);
box
->
setTitle
(
tool
->
objectName
());
box
->
setLayout
(
new
QVBoxLayout
());
box
->
layout
()
->
addWidget
(
tool
);
ui
->
multiRotorAttitudeLayout
->
addWidget
(
box
);
//ui->multiRotorPositionLayout->addWidget(tool);
}
else
{
delete
tool
;
}
...
...
@@ -222,7 +233,12 @@ void QGCVehicleConfig::setActiveUAS(UASInterface* active)
if
(
tool
->
loadSettings
(
defaultsDir
+
"px4_fw_attitude_pid_params.qgw"
,
false
))
{
toolWidgets
.
append
(
tool
);
ui
->
fixedWingAttitudeLayout
->
addWidget
(
tool
);
QGroupBox
*
box
=
new
QGroupBox
(
this
);
box
->
setTitle
(
tool
->
objectName
());
box
->
setLayout
(
new
QVBoxLayout
());
box
->
layout
()
->
addWidget
(
tool
);
ui
->
multiRotorAttitudeLayout
->
addWidget
(
box
);
//ui->fixedWingAttitudeLayout->addWidget(tool);
}
else
{
delete
tool
;
}
...
...
@@ -232,7 +248,12 @@ void QGCVehicleConfig::setActiveUAS(UASInterface* active)
if
(
tool
->
loadSettings
(
defaultsDir
+
"px4_fw_position_pid_params.qgw"
,
false
))
{
toolWidgets
.
append
(
tool
);
ui
->
fixedWingPositionLayout
->
addWidget
(
tool
);
QGroupBox
*
box
=
new
QGroupBox
(
this
);
box
->
setTitle
(
tool
->
objectName
());
box
->
setLayout
(
new
QVBoxLayout
());
box
->
layout
()
->
addWidget
(
tool
);
ui
->
multiRotorAttitudeLayout
->
addWidget
(
box
);
//ui->fixedWingPositionLayout->addWidget(tool);
}
else
{
delete
tool
;
}
...
...
src/ui/designer/QGCToolWidget.cc
View file @
66d3ab68
...
...
@@ -154,6 +154,7 @@ bool QGCToolWidget::loadSettings(const QString& settings, bool singleinstance)
if
(
groups
.
length
()
>
0
)
{
QString
widgetName
=
groups
.
first
();
this
->
setObjectName
(
widgetName
);
if
(
singleinstance
&&
QGCToolWidget
::
instances
()
->
keys
().
contains
(
widgetName
))
return
false
;
// Do not use setTitle() here,
// interferes with loading settings
...
...
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