mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 20:25:29 +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:
@@ -188,8 +188,8 @@ namespace BlackSimPlugin
|
|||||||
hints.setLoggingInterpolation(this->getInterpolationSetup().getLogCallsigns().contains(m_callsign));
|
hints.setLoggingInterpolation(this->getInterpolationSetup().getLogCallsigns().contains(m_callsign));
|
||||||
const CAircraftSituation situation = m_interpolator.getInterpolatedSituation(-1, m_interpolationSetup, hints, status);
|
const CAircraftSituation situation = m_interpolator.getInterpolatedSituation(-1, m_interpolationSetup, hints, status);
|
||||||
|
|
||||||
// Test only for successful interpolation. FS9 requires constant positions
|
// Test only for successful position. FS9 requires constant positions
|
||||||
if (!status.didInterpolationSucceed()) { return; }
|
if (!status.hasValidSituation()) { return; }
|
||||||
|
|
||||||
sendMultiplayerPosition(situation);
|
sendMultiplayerPosition(situation);
|
||||||
sendMultiplayerParamaters();
|
sendMultiplayerParamaters();
|
||||||
|
|||||||
@@ -342,8 +342,10 @@ namespace XSwiftBus
|
|||||||
BlackMisc::Simulation::CInterpolationAndRenderingSetup setup;
|
BlackMisc::Simulation::CInterpolationAndRenderingSetup setup;
|
||||||
BlackMisc::Simulation::CInterpolationStatus status;
|
BlackMisc::Simulation::CInterpolationStatus status;
|
||||||
const auto situation = plane->interpolator.getInterpolatedSituation(-1, setup, plane->hints(), status);
|
const auto situation = plane->interpolator.getInterpolatedSituation(-1, setup, plane->hints(), status);
|
||||||
if (! status.didInterpolationSucceed()) { return xpmpData_Unavailable; }
|
if (! status.hasValidSituation()) { return xpmpData_Unavailable; }
|
||||||
if (! status.hasChangedPosition()) { return xpmpData_Unchanged; }
|
|
||||||
|
//! \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::PhysicalQuantities;
|
||||||
using namespace BlackMisc::Aviation;
|
using namespace BlackMisc::Aviation;
|
||||||
|
|||||||
Reference in New Issue
Block a user