I'm developing an application which measures the accelerometer values to indicate how much the phone is being shaken. At the moment I'm just using the Z value, which works if the phone is lying flat on its back.
Is there any formula to combine x + y + z in order to give the value irrespective of the orientation of the phone?
Is there any formula to combine x + y + z in order to give the value irrespective of the orientation of the phone?