QCompass accuracy as phone is tilted in landscape mode
I have implemented a compass interface on a Nokia 808 and I get relatively accurate results when the phone is held on a horizontal plane with the display facing up.
I would like to be able to obtain similarly accurate compass readings when the phone is tilted into landscape mode. eg Can I obtain the direction that the camera is facing when it is recording?
This requires rotational transforms on the magnetometer readings to take into account the change in tilt orientation of the phone. Is this taken into account in the QCompass class?
If not then do I need to access the raw magnetometer data to be able to do this? Any help would be appreciated
Re: QCompass accuracy as phone is tilted in landscape mode
as far as I know, symbian sensor framework implementation for the Compass, does indeed use both accelerometer (for device tilt) as well as Magnetometer, so it should (at least in theory) work just fine in both orientations.
Anyway, to see how the device behaves, you should test the functionality in a real device.