W3C home > Mailing lists > Public > public-device-apis-log@w3.org > February 2017

[accelerometer] No way to get isolated gravity

From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
Date: Wed, 22 Feb 2017 19:45:05 +0000
To: public-device-apis-log@w3.org
Message-ID: <issues.opened-209559983-1487792703-sysbot+gh@w3.org>
kenchris has just created a new issue for 

== 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 

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 
Received on Wednesday, 22 February 2017 19:45:12 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:53 UTC