Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77423

QRotationSensor reporting invalid values

    XMLWordPrintable

    Details

    • Platform/s:
      Android
    • Commits:
      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

          For Gerrit Dashboard: QTBUG-77423
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              vuokko Juha Vuolle
              Reporter:
              rabits Rabit
              Votes:
              11 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes