New issue
Advanced search Search tips

Issue 827458 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 824436
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

[Sensor] RelativeOrientationSensor.quaternion changes little when rotate device around Z axis on Linux

Reported by canx....@intel.com, Mar 30 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Steps to reproduce the problem:
1. Enable the 'Generic Sensor', 'Generic Sensor Extra Classes' and 'Experimental Web Platform features' in chrome://flags.
2.Enter the test case: https://intel.github.io/generic-sensor-demos/sensor-info/build/bundled/ 
3.Click the button at the top right corner
4.A popup shows, and choose the "RelativeOrientation" Sensor type, click "ADD" button
5.Turn on the switch button
6. Horizontally rotate the device (Please make sure the device is at rest on a leveled surface and web page is facing towards the sky.)
7. Observe the value of quaternion

What is the expected behavior?
quaternion.z and quaternion.w changes during -1 to 1, quaternion.x, quaternion.y is always approach to 0 while rotate device around Z axis

What went wrong?
the value of quaternion is always approach to [0, 0, 0, 1] while rotate device around Z axis
Note: this issue also reproduces when referenceFrame is "screen", i.e. new AbsoluteOrientationSensor({referenceFrame: screen });

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 67.0.3381.0  Channel: canary
OS Version: Ubuntu 16.04
Flash Version: 

Hareware: Dell Inspiron 13 7000 Series
 
Labels: Needs-Triage-M67
Labels: Needs-Feedback Triaged-ET
Tested the issue on chrome reported version using Ubuntu 17.10 with steps mentioned below:
1) Launched chrome reported version and enabled 'Generic Sensor', 'Generic Sensor Extra Classes' and 'Experimental Web Platform features' in chrome://flags
2) Navigated to URL: https://intel.github.io/generic-sensor-demos/sensor-info/build/bundled/ and clicked on the button on top right corner and selected "RelativeOrientation" from the drop down and clicked on ADD, turned ON the switch buton
3) Horizontally rotate the device and placed it on levelled surface and please find the screen cast and screenshot for the observations (after rotating the screen to horizontal position unable to capture the screen cast hence attaching the screenshot of the final output.
Observations: Observed the same behaviour from chrome M-62 milestone

@Reporter: Please find the attached screen cast and let us know if we missed anything in verifying the issue, provide your feedback on it which helps us in further triaging it and please confirm if this issue is specific to Ubuntu 16.04.

Thanks!
827458.webm
8.9 MB View Download
827458.jpg
263 KB View Download

Comment 3 by canx....@intel.com, Apr 4 2018

Thanks,viswa.karala!
I watched your screen cast, it already reproduce the issue.
Please observe the value of quaternion.z when horizontally rotate the device, it always get about "0.0**", it changed little.
The expected behavior: quaternion.z and quaternion.w changes during -1 to 1,quaternion.x, quaternion.y is always approach to 0 while rotate device around Z axis
Project Member

Comment 4 by sheriffbot@chromium.org, Apr 4 2018

Cc: viswa.karala@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
Thanks for your feedback!

@Reporter: As mentioned in comment#2, the behaviour which is captured in the screen cast is seen similar from chrome M-62 from the implementation of flags in comment#0. If possible could you please provide the screen cast of excepted behaviour which helps us in better understanding and proceed further on triaging.

Thanks!
Components: Blink>Sensor
Mergedinto: 824436
Status: Duplicate (was: Unconfirmed)
This is expected, the current implementation of the RelativeOrientationSensor on Linux only uses the accelerometer which cannot measure rotation around the z-axis. A fusion sensor using the accelerometer and gyroscope is being implemented in  issue 824436 .

Comment 8 by canx....@intel.com, May 4 2018

I test this issue with Chrome 68.0.3408.0 on Linux and Chrome OS.
It has been fixed.
Thanks.

Sign in to add a comment