mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T180, FSX driver validates situation to check if there are any problems with that
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user