mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
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:
committed by
Mat Sutcliffe
parent
fc2f7b4a12
commit
0360704b0b
@@ -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()); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user