The formula for calculating acceleration from accelerometer values is sqrt(accelerometer.x^2 + accelerometer.y^2 + accelerometer.z^2).. But this does not give the direction in which the acceleration is happening. If there is a method that could even evaluate that if the acceleration was positive of negative?
I have a reference frame from which I am calculating all these values. All I need is the direction/positive or negative acceleration.