1
\$\begingroup\$

I use android devices (Xiaomi Mi9-SE (Android 10) & Huawei P10 (Android 9)) to collect movement data from bicycle rides. Hereby, I am measuring i.a the Rotation Vector which describes the rotation of the smartphone to the earth's reference frame (https://developer.android.com/reference/android/hardware/SensorEvent#sensor.type_rotation_vector:).

The sensor returns four values, which represent the rotation as a quaternion (w,x,y,z).

In my experiment I recorded a bike ride with two smartphones, which were glued to each other in the same alignment. When I plot the returned values from the Rotation Sensors numerically, they seem to be similar in some phases and dissimilar in others (cf. 1, 2)

However, when in a dissimilar phase (e.g. ~22:12:30h), it seems like the rotations are still somehow the same, but the axis are swapped. I plotted two corresponding rotations (cf. 3, 4). If the x and y axis were swapped and mirrored on the new y, the rotation would become similar. I wonder if this behavior is due to inaccurate/bad sensors or whether I missed something working with quaternions.

Would be really great if someone could tell me, if/where I miss a point here.

enter image description here enter image description here enter image description here enter image description here

\$\endgroup\$
4
  • \$\begingroup\$ Which smartphones did you use? Are they the same model? Same OS? \$\endgroup\$
    – Selphiron
    Commented Jan 29, 2021 at 10:23
  • 1
    \$\begingroup\$ I used Xiaomi Mi-9 SE (Android 10) and Huawei P10 (Android 9). I edited the question. \$\endgroup\$
    – Kons
    Commented Jan 29, 2021 at 10:35
  • \$\begingroup\$ Perhaps the sensors are mounted in different orientations in different phones? \$\endgroup\$
    – user16324
    Commented Jan 29, 2021 at 14:59
  • 1
    \$\begingroup\$ Thanks for your comment. However, the measurements are similar in certain phases. So it seems like one sensor switches orientations somewhen during the record. I would love to understand why/when this happens \$\endgroup\$
    – Kons
    Commented Jan 30, 2021 at 18:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.