Background: My aim is to figure out the tilted angles of a phone, for example for a game where tilting the phone backwards implies "stepping on the gas" and tilting left/right implies turning a steering wheel left and right.
I was watching this talk about sensor fusion between different Android sensors.
Based on the very end of the talk, it appears that I can use "vectors from rotation matrix to figure out which way I'm pointing".
Question: By that, are they implying that the correct approach for getting these angles would be by "Using the Rotation Vector Sensor"/TYPE_ROTATION_VECTOR?
If yes, my question is now specifically: which sensors does a device require to use sensor TYPE_ROTATION_VECTOR
? My guess is accelerometer for initial values plus gyroscope for correction (plus optionally compass for additional correction)?
Extra credit question: Is anywhere I can find a list of devices that meet that criteria? and/or does anyone have a suggestion for a super cheap device that has the required sensors?