Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.4, 5.12.7, 5.12, 5.13.0, 5.13, 5.14.1, 5.14
-
-
edf82b1d6dc7572da93bbdcd5b4ce46fa1dab2ad (qt/tqtc-qtsensors/tqtc/lts-5.15) f5dafafe912b7367c35fcf441eadc704b8dc3e27 (qt/qtsensors/dev)
Description
I found that the values from QRotationReading was changed when I switched from Qt 5.12.0 and NDK 18.0 to Qt 5.13.0 and android NDK 20 (SDK Version: 26.1.1, NDK Version: 20.0.5594570):
- each x/y/z value now have values [-57.2958,57.2958]
- that is equal to [-1.0, 1.0] converted from radians to degrees
So the ASensorEvent.vector (used in qtsensors/src/plugins/sensors/android/androidrotation.cpp) values are not radians, but -1..1 values.
Also the readings are become rough after the update (~2-3 readings per second), before they was much smoother (~20-30 readings per second). And dataRate doesn't help at all...
Attachments
Issue Links
- is duplicated by
-
QTBUG-77628 [REG 5.12 -> 5.13] QRotationReading is incorrect in range and values on Android
-
- Closed
-
-
QTBUG-78303 The QRotationSensor of android's behavior has been changed from Qt5.12.4
-
- Closed
-
For Gerrit Dashboard: QTBUG-77423 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
329862,6 | Android rotation sensor value and datarate fix | dev | qt/qtsensors | Status: ABANDONED | 0 | 0 |
330051,2 | Android rotation sensor value and datarate fix | tqtc/lts-5.15 | qt/tqtc-qtsensors | Status: MERGED | +2 | 0 |
349022,3 | Android rotation sensor value and datarate fix | dev | qt/qtsensors | Status: MERGED | +2 | 0 |
349024,1 | Android rotation sensor value and datarate fix | dev | qt/qtsensors | Status: ABANDONED | 0 | 0 |