Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop "-euler" from virtual sensor types
As discussed in https://github.com/w3c/deviceorientation/pull/124/files/738168e2d57e24e5094517700ab7d2b08ca2bfe4#r1414556615 we should use the same virtual sensor types for the device orientation part of this spec as well as the Orientation Sensor spec, just like the same virtual sensor types are used for device motion and the Generic Sensor API-based specs like Accelerometer and Gyroscope. Compared to device motion, however, we have an additional problem in that device orientation data is provided in Euler angles and Orientation Sensor uses quaternions. The idea is to parse readings by reading alpha/beta/gamma keys from the WebDriver extension command and use them in the "fire orientation event" algorithm and skip using quaternions altogether. The Orientation Sensor spec can then augment the "parse orientation data reading" algorithm with the required steps to both 1) accept a "quaternion" key in the WebDriver extension command (and convert it to Euler angles as well) and 2) derive a quaternion from the alpha/beta/gamma Euler angles.
- Loading branch information