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
351e33cf
Commit
351e33cf
authored
Oct 31, 2015
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Flightgear and JSBSim and only leave the option which actually works.
parent
2cd9ce2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
24 deletions
+21
-24
QGCHilConfiguration.cc
src/ui/QGCHilConfiguration.cc
+15
-13
QGCHilConfiguration.ui
src/ui/QGCHilConfiguration.ui
+1
-6
QGCHilFlightGearConfiguration.cc
src/ui/QGCHilFlightGearConfiguration.cc
+5
-5
No files found.
src/ui/QGCHilConfiguration.cc
View file @
351e33cf
...
...
@@ -114,17 +114,19 @@ void QGCHilConfiguration::on_simComboBox_currentIndexChanged(int index)
connect
(
xplane
,
SIGNAL
(
statusMessage
(
QString
)),
ui
->
statusLabel
,
SLOT
(
setText
(
QString
)));
}
}
else
if
(
4
)
{
// Ensure the sim exists and is disabled
_vehicle
->
uas
()
->
enableHilJSBSim
(
false
,
""
);
QGCHilJSBSimConfiguration
*
hfgconf
=
new
QGCHilJSBSimConfiguration
(
_vehicle
,
this
);
hfgconf
->
show
();
ui
->
simulatorConfigurationLayout
->
addWidget
(
hfgconf
);
QGCJSBSimLink
*
jsb
=
dynamic_cast
<
QGCJSBSimLink
*>
(
_vehicle
->
uas
()
->
getHILSimulation
());
if
(
jsb
)
{
connect
(
jsb
,
SIGNAL
(
statusMessage
(
QString
)),
ui
->
statusLabel
,
SLOT
(
setText
(
QString
)));
}
}
// Disabling JSB Sim since its not well maintained,
// but as refactoring is pending we're not ditching the code yet
// else if (4)
// {
// // Ensure the sim exists and is disabled
// _vehicle->uas()->enableHilJSBSim(false, "");
// QGCHilJSBSimConfiguration* hfgconf = new QGCHilJSBSimConfiguration(_vehicle, this);
// hfgconf->show();
// ui->simulatorConfigurationLayout->addWidget(hfgconf);
// QGCJSBSimLink* jsb = dynamic_cast<QGCJSBSimLink*>(_vehicle->uas()->getHILSimulation());
// if (jsb)
// {
// connect(jsb, SIGNAL(statusMessage(QString)), ui->statusLabel, SLOT(setText(QString)));
// }
// }
}
src/ui/QGCHilConfiguration.ui
View file @
351e33cf
...
...
@@ -52,11 +52,6 @@
<string>
X-Plane 9
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
JSBSim
</string>
</property>
</item>
</widget>
</item>
<item
row=
"1"
column=
"0"
colspan=
"2"
>
...
...
@@ -69,7 +64,7 @@
<item
row=
"2"
column=
"0"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"statusLabel"
>
<property
name=
"text"
>
<string
></string
>
<string
/
>
</property>
</widget>
</item>
...
...
src/ui/QGCHilFlightGearConfiguration.cc
View file @
351e33cf
...
...
@@ -29,18 +29,18 @@ QGCHilFlightGearConfiguration::QGCHilFlightGearConfiguration(Vehicle* vehicle, Q
QStringList
items
;
if
(
_vehicle
->
vehicleType
()
==
MAV_TYPE_FIXED_WING
)
{
items
<<
"EasyStar"
;
/*items << "EasyStar";*/
items
<<
"Rascal110-JSBSim"
;
items
<<
"c172p"
;
/*
items << "c172p";
items << "YardStik";
items
<<
"Malolo1"
;
items << "Malolo1";
*/
_mavSettingsSubGroup
=
_mavSettingsSubGroupFixedWing
;
}
else
if
(
_vehicle
->
vehicleType
()
==
MAV_TYPE_QUADROTOR
)
/*
else if (_vehicle->vehicleType() == MAV_TYPE_QUADROTOR)
{
items << "arducopter";
_mavSettingsSubGroup = _mavSettingsSubGroupQuadRotor;
}
}
*/
else
{
// FIXME: Should disable all input, won't work. Show error message in the status label thing.
...
...
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