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

QRotationSensor reporting invalid values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.4, 5.12.7, 5.12, 5.13.0, 5.13, 5.14.1, 5.14
    • Fix Version/s: None
    • Component/s: Sensors
    • Platform/s:
      Android

      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              lpotter Lorn Potter
              Reporter:
              rabits Rabit
              Votes:
              11 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes