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
7d464910
Commit
7d464910
authored
Dec 30, 2013
by
Thomas Gubler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flightgear debug output
parent
7e5acad9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
QGCFlightGearLink.cc
src/comm/QGCFlightGearLink.cc
+25
-0
QGCFlightGearLink.h
src/comm/QGCFlightGearLink.h
+2
-0
No files found.
src/comm/QGCFlightGearLink.cc
View file @
7d464910
...
...
@@ -625,6 +625,8 @@ bool QGCFlightGearLink::connectSimulation()
// qDebug() << "STARTING: " << processTerraSync << terraSyncArguments;
process
->
start
(
processFgfs
,
flightGearArguments
);
// connect (process, SIGNAL(readyReadStandardOutput()), this, SLOT(printFgfsOutput()));
// connect (process, SIGNAL(readyReadStandardError()), this, SLOT(printFgfsError()));
...
...
@@ -665,6 +667,29 @@ void QGCFlightGearLink::printTerraSyncError()
}
}
void
QGCFlightGearLink
::
printFgfsOutput
()
{
qDebug
()
<<
"fgfs stdout:"
;
QByteArray
byteArray
=
process
->
readAllStandardOutput
();
QStringList
strLines
=
QString
(
byteArray
).
split
(
"
\n
"
);
foreach
(
QString
line
,
strLines
){
qDebug
()
<<
line
;
}
}
void
QGCFlightGearLink
::
printFgfsError
()
{
qDebug
()
<<
"fgfs stderr:"
;
QByteArray
byteArray
=
process
->
readAllStandardError
();
QStringList
strLines
=
QString
(
byteArray
).
split
(
"
\n
"
);
foreach
(
QString
line
,
strLines
){
qDebug
()
<<
line
;
}
}
/**
* @brief Set the startup arguments used to start flightgear
*
...
...
src/comm/QGCFlightGearLink.h
View file @
7d464910
...
...
@@ -131,6 +131,8 @@ public slots:
void
printTerraSyncOutput
();
void
printTerraSyncError
();
void
printFgfsOutput
();
void
printFgfsError
();
void
setStartupArguments
(
QString
startupArguments
);
protected:
...
...
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