Compass / Orientation Model for Android

I wonder if you can help regarding a project I am working on coding in Javascript for an Android app. We are looking for a model to store our compass / orientation values ​​and found the w3c 2009 Compass API document

The document suggests using the following model as the IDL Web 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 model for creating a compass or orientation object, or if there were any updates or alternatives?

Many thanks

Leslie

+3


source to share





All Articles