[FS9] Properly set onground flag when converting situation to FS9

This commit is contained in:
Roland Rossgotterer
2019-05-03 10:32:25 +02:00
committed by Klaus Basan
parent bad8ad2a8e
commit 99bcee87aa

View File

@@ -73,6 +73,7 @@ namespace BlackSimPlugin
// MSFS has inverted pitch and bank angles
pbhstrct.pitch = ~pbhstrct.pitch;
pbhstrct.bank = ~pbhstrct.bank;
pbhstrct.onground = newSituation.isOnGround() ? 1 : 0;
positionVelocity.pbh = pbhstrct.pbh;
// Ground velocity
@@ -129,6 +130,8 @@ namespace BlackSimPlugin
// MSFS has inverted pitch and bank angles
pbhstrct.pitch = ~pbhstrct.pitch;
pbhstrct.bank = ~pbhstrct.bank;
pbhstrct.onground = situation.isOnGround() ? 1 : 0;
positionSlewMode.pbh = pbhstrct.pbh;
return positionSlewMode;