Skip to content

Abstract away underlying sensors #180

Open

Description

@marcoscaceres

The spec often talks about the underlying concrete sensors that are being used to provide the device orientation and motion. However, these sensors themselves are immaterial to the actual resulting events.

As such, it would be great if the spec could just abstract them away entirely.

Activity

  1. reillyeon commented on May 21, 2024

    @reillyeon
    Member

    Is this separate from the permission policy question?

    I think the orientation and motion events are already as abstracted from the underlying sensors as is possible while still being well-defined.

    That is, for example, the acceleration property of a DeviceMotionEvent implies the existence of an accelerometer. That's what a device which measures acceleration is called. It doesn't specify how the accelerometer works but if you have the ability to measure acceleration then you have something called an accelerometer. The same applies to "gyroscope". Even if it isn't constructed of concentric spinning rings it seems like the scientific community generally calls anything which can measure angular velocity a gyroscope. We could potentially rename "magnetometer" to "compass" if we want to focus the concept on determining heading or orientation on a spherical planet rather than measuring a magnetic field.

  2. marcoscaceres commented on May 21, 2024

    @marcoscaceres
    MemberAuthor

    It's kinda tied to the policy question, as, for instance the spec says things like:

    Relative device orientation is measured with an accelerometer and a gyroscope, and the reference coordinate system is arbitrary.

    Which make these hard connections. That's not to say the above is not matter of fact, but then those become connected to policy.

    Do you seen what I mean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions