Ref T683, "updateOwnSituationAndGroundElevation"

* function to use own positions "on ground" to calculate ground elevation
* use this based on settings
* adjusted simulators code
This commit is contained in:
Klaus Basan
2019-06-13 01:14:48 +02:00
committed by Mat Sutcliffe
parent fc2f7b4a12
commit 0360704b0b
8 changed files with 46 additions and 5 deletions

View File

@@ -48,6 +48,9 @@ namespace BlackMisc
//! Time difference in ms
qint64 getTimeDifferenceMs(qint64 compareTime) const { return compareTime - this->getMSecsSinceEpoch(); }
//! Time difference in ms
qint64 getTimeDifferenceAbsMs(qint64 compareTime) const { return qAbs(compareTime - this->getMSecsSinceEpoch()); }
//! Time difference to now
qint64 getTimeDifferenceToNowMs() const { return this->getTimeDifferenceMs(QDateTime::currentMSecsSinceEpoch()); }