|
|
|
@ -625,6 +625,8 @@ bool QGCFlightGearLink::connectSimulation()
@@ -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()
@@ -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 |
|
|
|
|
* |
|
|
|
|