Commit 4eec1224 authored by lm's avatar lm

Improved HIL slightly

parent 6454dd21
......@@ -279,6 +279,7 @@ bool QGCFlightGearLink::disconnectSimulation()
**/
bool QGCFlightGearLink::connectSimulation()
{
if (!mav) return false;
socket = new QUdpSocket(this);
//Check if we are using a multicast-address
......@@ -377,6 +378,8 @@ processCall << "--disable-random-objects";
processCall << "--disable-ai-models";
processCall << "--wind=0@0";
processCall << "--fdm=jsb";
processCall << QString("--lat=%1").arg(mav->getLatitude());
processCall << QString("--lon=%1").arg(mav->getLongitude());
// Add new argument with this: processCall << "";
processCall << QString("--aircraft=%2").arg(aircraft);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment