W3C home > Mailing lists > Public > public-geolocation@w3.org > July 2021

Re: [deviceorientation] Opposite z-axis for example 7 (#96)

From: Jean-Philippe Lambert via GitHub <sysbot+gh@w3.org>
Date: Wed, 07 Jul 2021 13:50:38 +0000
To: public-geolocation@w3.org
Message-ID: <issue_comment.created-875621365-1625665827-sysbot+gh@w3.org>
@rakuco Yes, you should be correct. I did not see the phrasing, and was mislead by the term _including_ in the name. So `accelerationIncludingGravity` includes the opposite of the acceleration due to gravity.

Apparently I am not the only one confused.. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) not including the _opposite_ term:

> Unlike DeviceMotionEvent.acceleration which compensates for the influence of gravity, its value is the sum of the acceleration of the device as induced by the user and the acceleration caused by gravity.

-- 
GitHub Notification of comment by jipodine
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/96#issuecomment-875621365 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 7 July 2021 13:53:22 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 7 July 2021 13:55:09 UTC