OpenCamera-Sensors icon indicating copy to clipboard operation
OpenCamera-Sensors copied to clipboard

Erroneous Rotation vector

Open nitin-ppnp opened this issue 3 years ago • 1 comments

I am trying to get the Rotation vector data using the add_sensors branch. I have observed that the Rotation vector data has two modes and the values keep switching between these two modes. The data from other sensors are fine. The "x","y","z","t" plot for the rotation vector looks like this image

And the CSV files looks like this

image

For this data, I have kept the phone static lying on a table (not horizontal, slightly inclined).

nitin-ppnp avatar Apr 17 '22 11:04 nitin-ppnp

Thank you for the report! I've checked the documentation and think I see the error in how this is computed now (incorrect usage of getrotationmatrix method), we'll fix this one

Also, I've adopted this approach from another contributor, but maybe a more correct way would be to just use the output of Sensor.TYPE_ROTATION_VECTOR itself

azaat avatar Apr 18 '22 13:04 azaat