Android Question orientation of the phone imu style for head tracking

Victor jung

Member
Licensed User
Longtime User
Hello,
As developing a google cardboard app, i am trying to track the head position in the space, head pan tilt.
I tried with the TYPE_ORIENTATION sensor, but all the axis, moves when moving only one angle... any ideas what TYPE_ORIENTATION sensor actually measures?
Also how should I code that?
I read this: http://developer.android.com/reference/android/hardware/SensorManager.html#getOrientation(float[], float[])

But still I am not sure what it does measure, and, how to use this function... not in phone sensor library I guess...
 

Victor jung

Member
Licensed User
Longtime User
thanks for your reply, this is already the example I used.
The accelerometer is good fo static position measuring, but during the moves, values are wrong because of head aceleration. Normally I should use, a combination of accelerometer gyroscope and magnetometer, but I think orientation sensor does this already, just dont understand wich values it gives...
 
Upvote 0
Top