summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml b/examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml
index bdd3cf05..a212b595 100644
--- a/examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml
+++ b/examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml
@@ -56,8 +56,8 @@ Rectangle {
active:true
//! [2]
- onReadingChanged: {
//! [3]
+ onReadingChanged: {
var newx = (bubble.x + calcRoll(accel.reading.x, accel.reading.y, accel.reading.z) * .1)
var newy = (bubble.y - calcPitch(accel.reading.x, accel.reading.y, accel.reading.z) * .1)
@@ -75,8 +75,8 @@ Rectangle {
bubble.x = newx
bubble.y = newy
-//! [4]
}
+//! [3]
}
function calcPitch(x,y,z) {