From 68225e7bf65dac6e22d9bc7e47c0ef20f026b3de Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sat, 4 Nov 2017 15:55:35 +0100 Subject: [PATCH] Ref T180, FSX driver validates situation to check if there are any problems with that --- src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp index 10b4d9d1e..d85cbd077 100644 --- a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp +++ b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp @@ -1082,7 +1082,6 @@ namespace BlackSimPlugin { CLogMessage(this).warning("Failed so set position on SimObject '%1' callsign: '%2'") << simObj.getObjectId() << callsign; } - } // interpolation data if (useAircraftParts) @@ -1301,6 +1300,9 @@ namespace BlackSimPlugin SIMCONNECT_DATA_INITPOSITION CSimulatorFsxCommon::aircraftSituationToFsxPosition(const CAircraftSituation &situation) { + Q_ASSERT_X(!situation.isGeodeticHeightNull(), Q_FUNC_INFO, "Missing height"); + Q_ASSERT_X(!situation.isPositionNull(), Q_FUNC_INFO, "Missing position"); + SIMCONNECT_DATA_INITPOSITION position; position.Latitude = situation.latitude().value(CAngleUnit::deg()); position.Longitude = situation.longitude().value(CAngleUnit::deg());