1

I currently detect movement on the y axis. How does one calculate the direction it moved on the axis?

I get the same values when moving up or down.

Is the Gyro needed for this?

Viraj
  • 1,880
  • 22
  • 31
user773578
  • 1,161
  • 2
  • 13
  • 24

1 Answers1

0

Do remember that the accelerometer will reflect the force of gravity. So movement up and down will generally be reflected as 9.81 m/s2 plus or minus the actual acceleration of the device relative to the Earth.

Anomie
  • 92,546
  • 13
  • 126
  • 145
  • any remarks on this: http://stackoverflow.com/questions/28959943/ios-accelerometer-values-at-any-orientation?noredirect=1#comment46172543_28959943 – nr5 Mar 10 '15 at 10:35