[compass] Re: Compass API

Lesley

The specification you are referencing is old and out of date - work on the System Information API  in DAP has been stopped ('shelved') [1].

The work you are interested in has moved [2]  to the  W3C Geolocation Working Group [3]. 

You should look at the "DeviceOrientation Event Specification", Editor's Draft 13 June 2012  and raise any questions on the Geolocation Working Group mail list.

The specification is at  http://dev.w3.org/geo/api/spec-source-orientation.html

I hope this helps. Apologies for the delay in responding, I was traveling on business.

regards, Frederick

Frederick Hirsch, Nokia
Chair, W3C DAP Working Group

[1] http://www.w3.org/2009/dap/#shelved

[2] http://lists.w3.org/Archives/Public/public-device-apis/2009Nov/0026.html

[3] http://www.w3.org/2008/geolocation/


On Jan 28, 2013, at 10:37 AM, ext Lesley Fosh wrote:

> Hi there
> 
> I wonder if you can help regarding a project I'm working on coding in Javascript for a mobile application. We're looking for a model to store our compass/orientation values and have found the 2009 document 'The Compass API' http://dev.w3.org/2009/dap/system-info/compass.html
> 
> The document suggests the following model be used as a web IDL object:
> 
> interface Orientation : Object {
>    readonly attribute DOMTimeStamp timestamp;
>    readonly attribute float        declination;
>    readonly attribute float        fieldStrength;
>    readonly attribute float        horizontalStrength;
>    readonly attribute float        inclination;
>    readonly attribute float        x;
>    readonly attribute float        y;
>    readonly attribute float        z;
> };
> 
> We were wondering if this is the best version to use to create a compass or orientation model, or if there have been any updates or alternatives?
> 
> Many thanks
> 
> LesleyThis message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
> 
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
> 
> 

Received on Monday, 4 February 2013 15:19:46 UTC