Hi, I am trying to calculate roll from the sensors, these seem to work fine when I hold the phone vertically, but when the phone is flat (lying on a table) the roll values become useless and the azimuth values seem to be relevant. Now, holding the phone half way between these two extremes, I would guess that I need to use both values somehow to calculate the real roll of the phone.
Think racing games, you can hold your device in front of you and use the roll to turn, or hold it flat and still use the roll to turn
A better example is an quad emulating the ground. Now when I roll the phone, the quad should stay horizontal, regardless of how I hold it.
Thanks in advance.