mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
refs #840, add support for interpolation hints
This commit is contained in:
committed by
Mathew Sutcliffe
parent
534b9fb09e
commit
46fafde7a0
@@ -16,6 +16,7 @@
|
||||
#include "utils.h"
|
||||
#include "blackmisc/interpolator.h"
|
||||
#include "blackmisc/interpolatorlinear.h"
|
||||
#include "blackmisc/simulation/interpolationhints.h"
|
||||
#include "blackmisc/simulation/remoteaircraftproviderdummy.h"
|
||||
#include "XPMPMultiplayer.h"
|
||||
#include <XPLM/XPLMProcessing.h>
|
||||
@@ -305,7 +306,8 @@ namespace XBus
|
||||
case xpmpDataType_Position:
|
||||
{
|
||||
BlackMisc::IInterpolator::InterpolationStatus status;
|
||||
auto situation = m_interpolator->getInterpolatedSituation(plane->situations, -1, false, status);
|
||||
const BlackMisc::Simulation::CInterpolationHints hints;
|
||||
auto situation = m_interpolator->getInterpolatedSituation(plane->situations, -1, hints, status);
|
||||
if (! status.didInterpolationSucceed()) { return xpmpData_Unavailable; }
|
||||
if (! status.hasChangedPosition()) { return xpmpData_Unchanged; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user