Warn in case pitch value from simulator is out of limits

refs #790
This commit is contained in:
Roland Winklmeier
2016-11-04 01:41:03 +01:00
committed by Klaus Basan
parent eb58450e8c
commit ea561cf723
3 changed files with 14 additions and 4 deletions

View File

@@ -79,6 +79,7 @@ namespace BlackSimPlugin
FS_PBH pbhstrct;
pbhstrct.pbh = positionVelocity.pbh;
int pitch = pbhstrct.pitch / CFs9Sdk::pitchMultiplier();
if (pitch < -90 || pitch > 89) { CLogMessage(nullptr).warning("FS9: Pitch value out of limits: %1") << pitch; }
int bank = pbhstrct.bank / CFs9Sdk::bankMultiplier();
// MSFS has inverted pitch and bank angles