mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
[FS9] Properly set onground flag when converting situation to FS9
This commit is contained in:
committed by
Klaus Basan
parent
bad8ad2a8e
commit
99bcee87aa
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user