From 962ede1c4314d442993829e4424ae4a878b750f9 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 19 Mar 2017 11:15:41 +0000 Subject: [PATCH] Fix how launcher resets heading-deg. This ensures finalisePosition logic runs as expected, ensuring real-world METAR usage kicks in. --- src/GUI/LocationWidget.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/GUI/LocationWidget.cxx b/src/GUI/LocationWidget.cxx index 5e3128979..1c5d3b3be 100644 --- a/src/GUI/LocationWidget.cxx +++ b/src/GUI/LocationWidget.cxx @@ -536,7 +536,7 @@ void LocationWidget::setLocationProperties() QStringList props = QStringList() << "vor-id" << "fix" << "ndb-id" << "runway-requested" << "navaid-id" << "offset-azimuth-deg" << "offset-distance-nm" << "glideslope-deg" << - "speed-set" << "on-ground" << "airspeed-kt" << "heading-deg" << + "speed-set" << "on-ground" << "airspeed-kt" << "airport-id" << "runway" << "parkpos"; Q_FOREACH(QString s, props) { @@ -556,10 +556,10 @@ void LocationWidget::setLocationProperties() return; } - fgSetDouble("/sim/presets/latitude-deg", -9999.0); - fgSetDouble("/sim/presets/longitude-deg", -9999.0); + fgSetDouble("/sim/presets/latitude-deg", 9999.0); + fgSetDouble("/sim/presets/longitude-deg", 9999.0); fgSetDouble("/sim/presets/altitude-ft", -9999.0); - + fgSetDouble("/sim/presets/heading-deg", 9999.0); if (!m_location) { return; @@ -569,6 +569,7 @@ void LocationWidget::setLocationProperties() FGAirport* apt = static_cast(m_location.ptr()); fgSetString("/sim/presets/airport-id", apt->ident()); fgSetBool("/sim/presets/on-ground", true); + fgSetBool("/sim/presets/airport-requested", true); if (m_ui->runwayRadio->isChecked()) { if (apt->type() == FGPositioned::AIRPORT) {