W3C home > Mailing lists > Public > public-device-apis@w3.org > March 2012

RE: Sensor API feedback: OrientationData

From: Tran, Dzung D <dzung.d.tran@intel.com>
Date: Sat, 3 Mar 2012 05:26:25 +0000
To: Doug Turner <doug.turner@gmail.com>, "public-device-apis@w3.org" <public-device-apis@w3.org>
Message-ID: <84BCA539DD96614691177EDA3CE4FF053B822A54@ORSMSX101.amr.corp.intel.com>

Understood, we definitely do not want to confuse the developers. I have read the DeviceOrientation spec and agree let not duplicate the work. Originally, the intent of the sensor API is to extract raw sensor data for further processing such as fusing for context. 

I will remove OrientationData from the sensor API spec.

Beside this, do you have any other concerns?


-----Original Message-----
From: Doug Turner [mailto:doug.turner@gmail.com] 
Sent: Friday, March 02, 2012 11:12 AM
To: public-device-apis@w3.org
Subject: Re: Sensor API feedback: OrientationData

Hi Jonas, Tran,

I am concerned that there is overlap between the Sensor Api and the DeviceOrientaiton Spec:

I worry that web developers will not know which API to use.  Tran, have you looked at our draft specification?  I am wondering how we can make these two efforts result in something that is consistent and pleasing to developers.

Answer to questions Jonas raised:

> I'm having trouble understanding the difference between the OrientationData and AccelerationData sensors.

They are measuring different things.  Orientation has to do with rotation about an axis measured by a gyro.  Acceleration will tell you change in speed measured by an accelerometer. 

> it's impossible to tell the difference between gravity and acceleration.

True. http://en.wikipedia.org/wiki/Equivalence_principle

> is the OrientationData sensor simply a convenience function on top of the AccelerationData sensor?

Both tell you something about the reference.  You really want to know both acceleration and orientation to fully understand what is happening to the reference.  You can't always determine orientation from acceleration or visa versa.

> Could someone explain the meaning of the alpha, beta and gamma values?

The DeviceOrientation spec goes into great detail about what these values are.
Received on Saturday, 3 March 2012 05:26:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:34 UTC