From 13edc46d89a06b9372d1ef21e8ad46323d6f21ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Tue, 21 Apr 2020 14:41:38 -0300 Subject: [PATCH] Vehicle: Move from QTime to QElapsedTimer to avoid deprecated functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/Vehicle/Vehicle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Vehicle/Vehicle.h b/src/Vehicle/Vehicle.h index e8b0d2207..886c9f8e0 100644 --- a/src/Vehicle/Vehicle.h +++ b/src/Vehicle/Vehicle.h @@ -1441,7 +1441,7 @@ private: QTimer _mavCommandAckTimer; int _mavCommandRetryCount; int _capabilitiesRetryCount = 0; - QTime _capabilitiesRetryElapsed; + QElapsedTimer _capabilitiesRetryElapsed; static const int _mavCommandMaxRetryCount = 3; static const int _mavCommandAckTimeoutMSecs = 3000; static const int _mavCommandAckTimeoutMSecsHighLatency = 120000; @@ -1490,7 +1490,7 @@ private: QTimer _sendMultipleTimer; int _nextSendMessageMultipleIndex; - QTime _flightTimer; + QElapsedTimer _flightTimer; QTimer _flightTimeUpdater; TrajectoryPoints* _trajectoryPoints; QmlObjectListModel _cameraTriggerPoints; -- 2.22.0