mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Ref T778, style and comments, debug hints
This commit is contained in:
committed by
Mat Sutcliffe
parent
829777bf3a
commit
46d417c5a2
@@ -523,7 +523,7 @@ namespace BlackMisc
|
||||
{
|
||||
Q_ASSERT_X(!m_callsign.isEmpty(), Q_FUNC_INFO, "Missing callsign");
|
||||
|
||||
const qint64 lastModifed = this->situationsLastModified(m_callsign);
|
||||
const qint64 lastModifed = this->situationsLastModified(m_callsign);
|
||||
const bool slowUpdateStep = (((m_interpolatedSituationsCounter + aircraftNumber) % 25) == 0); // flag when parts are updated, which need not to be updated every time
|
||||
const bool changedSituations = lastModifed > m_situationsLastModified;
|
||||
|
||||
|
||||
@@ -187,6 +187,7 @@ namespace BlackMisc
|
||||
CInterpolatorSpline::CInterpolant CInterpolatorSpline::getInterpolant(SituationLog &log)
|
||||
{
|
||||
// recalculate derivatives only if they changed
|
||||
// m_situationsLastModified updated in initIniterpolationStepData
|
||||
const bool recalculate = (m_currentTimeMsSinceEpoch >= m_nextSampleAdjustedTime) || // new step
|
||||
(m_situationsLastModified > m_situationsLastModifiedUsed); // modified
|
||||
|
||||
|
||||
Reference in New Issue
Block a user