The default bug view has changed. See this FAQ.

DeviceMotion accelerationIncludingGravity values are in units of "G"s

RESOLVED FIXED in mozilla11

Status

()

Core
DOM: Events
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: cjones, Assigned: cjones)

Tracking

unspecified
mozilla11
ARM
Android
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

The current spec says they should be in units of m/s^2, but they're currently reported as fractional multiples of 1G.  I'm not sure what happens on other platforms.  We should do what the spec says.
Created attachment 576649 [details] [diff] [review]
Report DeviceMotion values in units of m/s^2, not Gs, per current spec
Assignee: nobody → jones.chris.g
Attachment #576649 - Flags: review?(doug.turner)

Comment 2

5 years ago
Comment on attachment 576649 [details] [diff] [review]
Report DeviceMotion values in units of m/s^2, not Gs, per current spec

Review of attachment 576649 [details] [diff] [review]:
-----------------------------------------------------------------

this is fine, thanks!  could you also make sure that the absolute property of DeviceOrientationEvent is |true|?
Attachment #576649 - Flags: review?(doug.turner) → review+
It's set to true unconditionally at http://mxr.mozilla.org/mozilla-central/source/dom/system/nsDeviceMotion.cpp#275, the only site I found.  I don't know whether the data is absolute per spec or not.
Keywords: checkin-needed
http://hg.mozilla.org/integration/mozilla-inbound/rev/601d585e1e35
Keywords: checkin-needed
Target Milestone: --- → mozilla11
https://hg.mozilla.org/mozilla-central/rev/601d585e1e35
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.