Skip to content
Snippets Groups Projects
Commit 7fe7ced3 authored by LM's avatar LM
Browse files

Minor fixed to simulation

parent cd2bcb07
No related branches found
No related tags found
No related merge requests found
...@@ -361,10 +361,9 @@ fgRoot = "--fg-root=/usr/share/flightgear/data"; ...@@ -361,10 +361,9 @@ fgRoot = "--fg-root=/usr/share/flightgear/data";
processCall << fgRoot; processCall << fgRoot;
processCall << fgScenery; processCall << fgScenery;
processCall << "--generic=socket,out,50,127.0.0.1,49005,udp,ardupilot"; processCall << "--generic=socket,out,50,127.0.0.1,49005,udp,qgroundcontrol";
processCall << "--generic=socket,in,50,127.0.0.1,49000,udp,ardupilot"; processCall << "--generic=socket,in,50,127.0.0.1,49000,udp,qgroundcontrol";
processCall << "--in-air"; processCall << "--in-air";
processCall << "--altitude=10";
processCall << "--vc=90"; processCall << "--vc=90";
processCall << "--heading=300"; processCall << "--heading=300";
processCall << "--timeofday=noon"; processCall << "--timeofday=noon";
...@@ -386,8 +385,9 @@ if (mav->getSystemType() == MAV_TYPE_QUADROTOR) ...@@ -386,8 +385,9 @@ if (mav->getSystemType() == MAV_TYPE_QUADROTOR)
processCall << "--prop:/engines/engine[2]/running=true"; processCall << "--prop:/engines/engine[2]/running=true";
processCall << "--prop:/engines/engine[3]/running=true"; processCall << "--prop:/engines/engine[3]/running=true";
} }
processCall << QString("--lat=%1").arg(mav->getLatitude()); processCall << QString("--lat=%1").arg(UASManager::instance()->getHomeLatitude());
processCall << QString("--lon=%1").arg(mav->getLongitude()); processCall << QString("--lon=%1").arg(UASManager::instance()->getHomeLongitude());
processCall << QString("--altitude=%1").arg(UASManager::instance()->getHomeAltitude());
// Add new argument with this: processCall << ""; // Add new argument with this: processCall << "";
processCall << QString("--aircraft=%2").arg(aircraft); processCall << QString("--aircraft=%2").arg(aircraft);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment