mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
refs #691 Make sure to set status correctly in interpolator.
This commit is contained in:
@@ -60,6 +60,8 @@ namespace BlackMisc
|
||||
// interpolation situations
|
||||
CAircraftSituation oldSituation;
|
||||
CAircraftSituation newSituation;
|
||||
status.interpolationSucceeded = true;
|
||||
status.changedPosition = true; //! \todo efficiently determine whether the position has changed
|
||||
|
||||
// latest first, now 00:20 split time
|
||||
// time pos
|
||||
@@ -93,7 +95,6 @@ namespace BlackMisc
|
||||
|
||||
CAircraftSituation currentSituation(oldSituation);
|
||||
CCoordinateGeodetic currentPosition;
|
||||
status.interpolationSucceeded = true;
|
||||
|
||||
// Time between start and end packet
|
||||
double deltaTime = std::abs(oldSituation.getAdjustedMSecsSinceEpoch() - newSituation.getAdjustedMSecsSinceEpoch());
|
||||
@@ -179,7 +180,6 @@ namespace BlackMisc
|
||||
currentSituation.setGroundSpeed((newSituation.getGroundSpeed() - oldSituation.getGroundSpeed())
|
||||
* simulationTimeFraction
|
||||
+ oldSituation.getGroundSpeed());
|
||||
status.changedPosition = true;
|
||||
return currentSituation;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user