From 4126977c5a683475335df289c088c11439afa548 Mon Sep 17 00:00:00 2001 From: Titta Heikkala Date: Thu, 9 Feb 2017 12:04:11 +0200 Subject: iot-sensortag: Make central gyro visible always and calibratable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Central gyro page is visible always. It is also possible to recalibrate the gyro sensor by clicking the GyroChart. Change-Id: I9805411e03d49571b9e392bcd77a9469aef153a0 Reviewed-by: Kari Hautamäki --- tradeshow/iot-sensortag/resources/base/GyroChart.qml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tradeshow/iot-sensortag/resources/base/GyroChart.qml') diff --git a/tradeshow/iot-sensortag/resources/base/GyroChart.qml b/tradeshow/iot-sensortag/resources/base/GyroChart.qml index e14bc62..3faf879 100644 --- a/tradeshow/iot-sensortag/resources/base/GyroChart.qml +++ b/tradeshow/iot-sensortag/resources/base/GyroChart.qml @@ -70,6 +70,11 @@ BaseChart { } } + onClicked: { + if (sensor) + sensor.recalibrate(); + } + title: qsTr("Gyroscope") rightSide: true -- cgit v1.2.3