From 9fd54864f05466444985471a1e427ac938cb3941 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Fri, 2 Feb 2018 21:05:39 +0100 Subject: [PATCH] Ref T243, const value in provider to have it in a single place --- src/blackmisc/simulation/remoteaircraftprovider.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/blackmisc/simulation/remoteaircraftprovider.h b/src/blackmisc/simulation/remoteaircraftprovider.h index 74fa6f9f3..6ee874876 100644 --- a/src/blackmisc/simulation/remoteaircraftprovider.h +++ b/src/blackmisc/simulation/remoteaircraftprovider.h @@ -47,8 +47,10 @@ namespace BlackMisc class BLACKMISC_EXPORT IRemoteAircraftProvider { public: - static constexpr int MaxSituationsPerCallsign = 6; //!< How many situations per callsign - static constexpr int PartsPerCallsignMaxAgeInSeconds = 20; //!< How many seconds to keep parts for interpolation + static constexpr int MaxSituationsPerCallsign = 6; //!< How many situations we keep per callsign + static constexpr int MaxPartsPerCallsign = 20; //!< How many parts we keep per callsign (we keep more parts than situations as parts can just come in) + static constexpr int MaxPartsAgePerCallsignSecs = 60; //!< How many seconds to keep parts for interpolation + static constexpr int DefaultOffsetTimeMs = 6000; //!< \fixme copied from CNetworkVatlib::c_positionTimeOffsetMsec //! Situations per callsign using CSituationsPerCallsign = QHash;