From 0c985a679d0aa14ce9f54952b664cd84e3c90891 Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Tue, 31 Dec 2013 00:00:50 +0100 Subject: [PATCH] flightgear: add comment about missing altitude setting --- src/comm/QGCFlightGearLink.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/comm/QGCFlightGearLink.cc b/src/comm/QGCFlightGearLink.cc index d110aa0ff..d75770671 100644 --- a/src/comm/QGCFlightGearLink.cc +++ b/src/comm/QGCFlightGearLink.cc @@ -598,7 +598,10 @@ bool QGCFlightGearLink::connectSimulation() } flightGearArguments << QString("--lat=%1").arg(UASManager::instance()->getHomeLatitude()); flightGearArguments << QString("--lon=%1").arg(UASManager::instance()->getHomeLongitude()); -// flightGearArguments << QString("--altitude=%1").arg(UASManager::instance()->getHomeAltitude()); + //The altitude is not set because an altitude not equal to the ground altitude leads to a non-zero default throttle in flightgear + //Without the altitude-setting the aircraft is positioned on the ground + //flightGearArguments << QString("--altitude=%1").arg(UASManager::instance()->getHomeAltitude()); + // Add new argument with this: flightGearArguments << ""; //flightGearArguments << QString("--aircraft=%2").arg(aircraft); -- 2.22.0