Currently working on an augmented reality Application, I am experimenting with the sensors. I've tried using raw sensor data, combining accelerometer + magnetic_field with rotationmatrices either via SensorManager or with one ones, but with no real success.
Reading more about sensor fusion, I've seen some applications in the play store that managed to get the compass functionality with both pitch and roll to work, for example this one: 3D Gyro Compass (https://play.google.com/store/apps/details?id=fi.finwe.gyrocompass&hl=de) - the sensor fusion code is under LGPL so I've decided to give it a shot but my readings are still way off and the orientation is somewhat screwed over, so seems like they are doing a bit more.
Are there any solutions to the android orientation, e.g. letting me use them in some sort of a compass / AR application? Google didn't show me anything useful so far.