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
0f136442
Commit
0f136442
authored
Oct 28, 2012
by
Thomas Gubler
Browse files
corrected flightgear configuration
parent
8a6998d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/comm/QGCFlightGearLink.cc
View file @
0f136442
...
...
@@ -536,6 +536,15 @@ void QGCFlightGearLink::printTerraSyncError()
}
}
/**
* @brief Set the startup arguments used to start flightgear
*
**/
void
QGCFlightGearLink
::
setStartupArguments
(
QString
startupArguments
)
{
this
->
startupArguments
=
startupArguments
;
}
/**
* @brief Check if connection is active.
*
...
...
src/comm/QGCFlightGearLink.h
View file @
0f136442
...
...
@@ -117,6 +117,7 @@ public slots:
void
printTerraSyncOutput
();
void
printTerraSyncError
();
void
setStartupArguments
(
QString
startupArguments
);
protected:
QString
name
;
...
...
src/uas/UAS.cc
View file @
0f136442
...
...
@@ -2602,6 +2602,8 @@ void UAS::enableHilFlightGear(bool enable, QString options)
simulation
=
new
QGCFlightGearLink
(
this
,
options
);
}
// Connect Flight Gear Link
link
=
dynamic_cast
<
QGCFlightGearLink
*>
(
simulation
);
link
->
setStartupArguments
(
options
);
if
(
enable
)
{
startHil
();
...
...
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