From 6adf5d0a690e426a781eff49e7054e0f00532ac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Mon, 1 Feb 2021 20:14:18 +0100 Subject: [PATCH] PIDTuning: start plotting on arming if not started already --- src/QmlControls/PIDTuning.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/QmlControls/PIDTuning.qml b/src/QmlControls/PIDTuning.qml index cf0bbe9..a303c69 100644 --- a/src/QmlControls/PIDTuning.qml +++ b/src/QmlControls/PIDTuning.qml @@ -307,6 +307,15 @@ RowLayout { } } } + Connections { + target: globals.activeVehicle + onArmedChanged: { + if (armed && !dataTimer.running) { // start plotting on arming if not already running + dataTimer.running = true + _last_t = 0 + } + } + } } QGCCheckBox {