mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Ref T229, FS9 and XPlane adjustments for changed CInterpolationStatus
Ref T207, maybe MS should review the XP part
This commit is contained in:
@@ -342,8 +342,10 @@ namespace XSwiftBus
|
||||
BlackMisc::Simulation::CInterpolationAndRenderingSetup setup;
|
||||
BlackMisc::Simulation::CInterpolationStatus status;
|
||||
const auto situation = plane->interpolator.getInterpolatedSituation(-1, setup, plane->hints(), status);
|
||||
if (! status.didInterpolationSucceed()) { return xpmpData_Unavailable; }
|
||||
if (! status.hasChangedPosition()) { return xpmpData_Unchanged; }
|
||||
if (! status.hasValidSituation()) { return xpmpData_Unavailable; }
|
||||
|
||||
//! \fixme KB 2018-01 commented out with T229. Change detection needs to go somewhere else
|
||||
// if (! status.hasChangedPosition()) { return xpmpData_Unchanged; }
|
||||
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
using namespace BlackMisc::Aviation;
|
||||
|
||||
Reference in New Issue
Block a user