In android, we have Sensor.TYPE_GRAVITY, Sensor.TYPE_ACCELEROMETER, Sensor.TYPE_LINEAR_ACCERERATION.
And from the Android Developers Forum, we know that, "The output of the accelerometer, gravity and linear acceleration sensors should correspond to the following ratio: acceleration = gravity + linear acceleration"
Sensor.TYPE_GRAVITY and Sensor.TYPE_LINEAR_ACCELERATION use the same sensor as Sensor.TYPE_ACCELEROMETER - that is, an accelerometer? What is the purpose of having 3 different constants if the value of one can be derived using the other using low-pass and high-pass filters?
source
share