0

I'm quite new to android development, and just know started to learn how to use the sensors.

I started reading about the sensors in the the developers.android site, and came across this article.

it says there that in order to get the real acceleration you should apply a high pass filter, because the sensor reads also the gravity force.

my question is: why not just subtract the gravity force (g) from the value?

elyashiv
  • 3,623
  • 2
  • 29
  • 52

1 Answers1

2

Because the actual sensed gravity depend on the angle of your device to the vertical.

A high pass will filter constants (and slow movements)

What are High-Pass and Low-Pass Filters containing links to various resources.

Community
  • 1
  • 1
njzk2
  • 38,969
  • 7
  • 69
  • 107