From 99bcee87aa672adb97e452d01ebc7141c075449d Mon Sep 17 00:00:00 2001 From: Roland Rossgotterer Date: Fri, 3 May 2019 10:32:25 +0200 Subject: [PATCH] [FS9] Properly set onground flag when converting situation to FS9 --- src/plugins/simulator/fs9/fs9client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/simulator/fs9/fs9client.cpp b/src/plugins/simulator/fs9/fs9client.cpp index 11faff915..3c7eebb58 100644 --- a/src/plugins/simulator/fs9/fs9client.cpp +++ b/src/plugins/simulator/fs9/fs9client.cpp @@ -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;