refs #896 Use corrected altitude in spline interpolator (prevents underflow in FSX).

This commit is contained in:
Mathew Sutcliffe
2017-03-05 14:29:19 +00:00
parent e30e9a7a94
commit a94e117e97

View File

@@ -115,7 +115,7 @@ namespace BlackMisc
x = {{ normals[0][0], normals[1][0], normals[2][0] }};
y = {{ normals[0][1], normals[1][1], normals[2][1] }};
z = {{ normals[0][2], normals[1][2], normals[2][2] }};
a = {{ s[0].getAltitude().value(), s[1].getAltitude().value(), s[2].getAltitude().value() }};
a = {{ s[0].getCorrectedAltitude().value(), s[1].getCorrectedAltitude().value(), s[2].getCorrectedAltitude().value() }};
t = {{ static_cast<double>(s[0].getAdjustedMSecsSinceEpoch()), static_cast<double>(s[1].getAdjustedMSecsSinceEpoch()), static_cast<double>(s[2].getAdjustedMSecsSinceEpoch()) }};
dx = getDerivatives(t, x);