Re: [sensors] Provide the DeviceOrientation sensor

If we call it DeviceOrientationSensor then it should be a fusion of 
accel and gyro, which most sensor hubs now can do in hardware and 
usually accomplish using a complimentary filter, as it creates 
satisfactory results for common use-cases without must computation.

A fusion of magnetomer and gravity (gravity isolated from 
accelerometer - also sometimes done in the sensor hub using a low pass
 filter - Android exposes a specific Gravity sensor for that) should 
be called CompassSensor or similar.

We could also make it an argument to a generic orientation sensor, 
like say { type: "compass" | "device" | "gamepad" | "vr-headset" ... }

-- 
GitHub Notification of comment by kenchris
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/170#issuecomment-283952294 using
 your GitHub account

Received on Friday, 3 March 2017 13:27:39 UTC