[accelerometer] No way to get isolated gravity

kenchris has just created a new issue for 
https://github.com/w3c/accelerometer:

== No way to get isolated gravity ==
If you want to do a real magnetic compass then you need the magnetic 
field and the gravity vector (or even better, isolated gravity data). 
The only way to get this is to includeGravity and then do a low pass 
filter (say with alpha value 0.8). (see 
https://github.com/01org/websensor-compass/commit/3d92ff1ce9e70af93a20ea260cbe3de2209ca5eb)

That is doable but not efficient, plus Android already exposes a way 
to get isolated gravity, so it kind of feels foolish.

Please view or discuss this issue at 
https://github.com/w3c/accelerometer/issues/13 using your GitHub 
account

Received on Wednesday, 22 February 2017 19:45:12 UTC